Add pending forced action and game_over fields to GameJoinResult: - pending_forced_action: Included when player must complete a forced action (e.g., select new active after KO). Essential for reconnection so client knows what action is required. - game_over: Boolean indicating if game has already ended. - is_your_turn: Now True when player has pending forced action, even if it's technically opponent's turn. The join_game method now handles both initial joins and reconnections (resume). The last_event_id parameter is accepted for future event replay support. Tests: 4 new tests for forced action handling and game_over flag. Total 51 tests for GameService. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| PHASE_1_DATABASE.json | ||
| PHASE_2_AUTH.json | ||
| PHASE_3_COLLECTION_DECKS.json | ||
| PHASE_4_GAME_SERVICE.json | ||