pub fn run<G>(game: G) -> ExitCodewhere
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.