mantimon-tcg/backend/project_plans
Cal Corum 3c75ee0e00 Implement GameService.create_game (GS-002)
- Add create_game method that loads decks via DeckService, converts
  CardDefinitions to CardInstances, and persists to Redis/Postgres
- Build card registry from only the cards in play (not all cards)
- Add GameCreationError exception and GameCreateResult dataclass
- Add creation_engine_factory for DI-based testing (no monkey patching)
- Add helper methods: _cards_to_instances, _build_card_registry
- Update tests with proper mocks for success, deck failure, engine failure

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 14:09:11 -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.create_game (GS-002) 2026-01-29 14:09:11 -06:00