Skip to main content

parse_game_state

Function parse_game_state 

Source
pub fn parse_game_state(message: &Value) -> GameState
Expand description

Parse a turn_request envelope into a GameState.

The wire shape is documented in docs/protocol/POKER-GAME-STATE-PROTOCOL.md. All fields default to safe values when absent — but a real server always sends them.