update_room_config
Update room configuration in the lobby by providing any subset of settings. Resets both players' ready flags to ensure agreement on new config. Fails if game is already in progress.
Instructions
Host-only: tweak room config while still in the lobby.
Only fields passed (non-None) are updated. Any change resets both seats' ready flags — if readiness was previously agreed upon, the config shift might change the deal. Fails outside the pre-game states (COUNTING_DOWN, IN_GAME, FINISHED).
── Locking ── Input validation + scenario load happen OUTSIDE state_lock (pure I/O). The actual config mutation + readiness reset happen atomically under state_lock.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | Yes | ||
| scenario | No | ||
| team_assignment | No | ||
| host_team | No | ||
| fog_of_war | No | ||
| max_turns | No | ||
| turn_time_limit_s | No |