Creates a new game session or resets an existing one,
depending on the presence of guid
in the request body:
• Omit guid
or set it to null
→ start a brand-new game
instance.
• Provide an existing guid
→ reset that session.
The call always returns the first (or refreshed) frame of the game state, along with updated score and win condition.
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.
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.