Skip to main content

run

Function run 

Source
pub fn run<G>(game: G) -> ExitCode
where G: Game + Serialize + DeserializeOwned, G::State: Serialize + DeserializeOwned, G::Action: DeserializeOwned + Debug, G::View: Serialize,
Expand description

Runs the text/headless CLI for game: new, query, act, self-play, and a text play. Works for any game whose types are serde-serializable.