Discovery Flow
The Hello Message
When a client connects, the server immediately sends ahello message advertising its capabilities:
Game Specifications
Each game has a specification document served at/api/games/{gameType}/spec. The spec is a structured markdown document with YAML frontmatter that describes:
- Rules — how the game works, what phases it has, how winners are determined
- Actions — what actions players can take, their parameters, and when they’re valid
- State Schema — JSON Schema defining the structure of game state in each message
- Action Schema — JSON Schema defining valid action formats
- Result Schema — JSON Schema defining round result structure
- Examples — complete message sequences showing how a round plays out