Skip to main content

read_turn

Function read_turn 

Source
pub fn read_turn<R: BufRead>(reader: R) -> Option<TurnInput>
Expand description

Read exactly one NDJSON line (the turn object) from any reader.

Returns None on EOF or malformed JSON. Agents that read from stdin can pass std::io::stdin() here; tests pass a &[u8].