Skip to main content

run

Function run 

Source
pub fn run<G>(simulator: Simulator<G>, ai_tick: Duration) -> Result<()>
where G: PrintableGame, G::Action: Debug,
Expand description

Runs simulator on a real terminal via retroglyph-crossterm, polling an AI-controlled seat every ai_tick, until the match ends or the terminal closes.

ยงErrors

Returns an std::io::Error if the terminal backend fails to initialize.