mantimon-tcg/backend/project_plans
Cal Corum d5460ff418 Enhance GameService.join_game for reconnection support (GS-004)
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>
2026-01-29 19:30:44 -06:00
..
PHASE_1_DATABASE.json Update Phase 1 plan with gap fixes and Phase 2 prerequisites 2026-01-27 15:38:49 -06:00
PHASE_2_AUTH.json Fix OAuth absolute URLs and add account linking endpoints 2026-01-27 22:06:22 -06:00
PHASE_3_COLLECTION_DECKS.json Update project plans and documentation for Phase 3 completion 2026-01-28 15:26:01 -06:00
PHASE_4_GAME_SERVICE.json Enhance GameService.join_game for reconnection support (GS-004) 2026-01-29 19:30:44 -06:00