Authorizations
Body
Game identifier, scorecard ID, and (optionally) the session guid
.
Starts a new game session or resets an existing one, depending on
whether a guid
is supplied.
• No guid
(null/empty) → A brand-new game instance is created and
the response will include its freshly minted guid
.
• With guid
→ The server issues a reset to that specific
instance:
- If at least one ACTION command has been executed in the current
level, only that level is reset (typical “try again” behaviour).
- If no ACTION commands have been executed since the last level
transition, the entire game is reset to its initial state.
Sending two RESET commands back-to-back therefore always yields a completely fresh game.
All plays should be associated with an open scorecard via card_id
so aggregated results can be tracked.
Identifier of the game to start or reset (e.g. ls20
).
scorecard identifier returned by OpenScorecardResponse. Required to attribute this play to the correct scorecard.
Server-generated game session ID.
• Omit or set to null
to create a new game.
• Provide an existing value to reset that game as described above.
Response
First frame after starting or resetting the session.
Snapshot returned after every RESET or ACTION command.
Includes the latest visual frame(s), cumulative score details, the
current game state, and an echo of the triggering action.
Game identifier for the running session.
Server-generated session ID; use this for all subsequent commands.
One or more consecutive visual frames. Each frame is a 64 × 64 grid of 4-bit colour indices (integers 0-15). Multiple frames may be returned if the environment advances internally (e.g., animations) before settling.
Current state of the session:
• NOT_FINISHED - game in progress, not yet WIN or GAME_OVER.
• NOT_STARTED - session has ended (WIN or GAME_OVER) and requires RESET.
• WIN - session ended in victory.
• GAME_OVER - session ended in defeat.
NOT_FINISHED
, NOT_STARTED
, WIN
, GAME_OVER
Current cumulative score for this run.
0 <= x <= 254
Score threshold required to reach the WIN state. Mirrors the game's configured win condition so agents can adapt dynamically without hard-coding values.
0 <= x <= 254
Echo of the command that produced this frame.
List of available actions for the current game.