Documentation

Game logic

v3 · Preview

Framework v3 is an opt-in preview available to everyone. New games use the stable framework by default.

Set up a game

1. Read the setup contract

Read setup for its input and return type. Use the supplied players and seeded random source.

Done when the initial position is planned for every supported player count.

2. Create the position

Build players, spaces, pieces, and typed data with the SDK. Set the intended active players. Read The state and Change the state.

Done when every entity has the expected ownership, placement, and data.

3. Check the opening

Write a setup test, then start a sandbox session. Inspect each player's view and the spectator view. Check the first legal offers.

Done when every supported count starts with a valid position and each viewer sees only the intended information.

Need a hand with this?

Join our Discord