Add a game
Read The games framework first. In short, a new game is:
- Rules in Rust: a crate in
crates/games/<name>, copied fromtictactoe, implementinggames_core::Gameand, for a computer player,games_core::Opponent. - Registered in WebAssembly: in
crates/games-wasm/src/registry.rs. - A TypeScript package:
packages/games/<name>, copied fromtictactoe, exportingwasmGame('<kind>')and the generated types. - A board: a
GameUiinpackages/games-ui/src/<name>/. - Registered in both apps: the server’s
apps/server/src/games/registry.tsand the browser’sapps/web/src/games/catalog.ts. The Games menu, demo contacts and the Retro Zone pick it up from there. - Tests:
gameContractwith a fixed seed, and a check thatviewnever shows hidden state.
The full checklist, including solo scoring and levels, is in the games-core README. The board contract is in Game panel.