mantimon-tcg/backend/project_plans
Cal Corum cd3cc892f4 Implement GameService.execute_action enhancements (GS-003)
Add forced action handling, turn boundary detection, and DB persistence:
- Check for pending forced actions before allowing regular actions
- Only specified player can act during forced action (except resign)
- Only specified action type allowed during forced action
- Detect turn boundaries (turn number OR current player change)
- Persist to Postgres at turn boundaries for durability
- Include pending_forced_action in GameActionResult for client

New exceptions: ForcedActionRequiredError

Tests: 11 new tests covering forced actions, turn boundaries, and
pending action reporting. Total 47 tests for GameService.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 15:15:34 -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 Implement GameService.execute_action enhancements (GS-003) 2026-01-29 15:15:34 -06:00