mantimon-tcg/backend/app/core
Cal Corum 554178dc6e Track stadium ownership for correct discard (Issue #12)
Added stadium_owner_id field to GameState to track who played the stadium:

- stadium_owner_id: str | None tracks the player who played the current stadium
- When a stadium is replaced, old stadium discards to OWNER's pile (not current player)
- Added stadium_owner_id to VisibleGameState for client visibility
- Updated existing test and added 2 new tests for stadium ownership

This fixes the bug where replacing an opponent's stadium would discard
to the current player's pile instead of the opponent's.

797 tests passing.
2026-01-26 11:38:38 -06:00
..
effects Implement energy/tools as CardInstance + evolution stack + devolve effect 2026-01-25 23:09:40 -06:00
models Track stadium ownership for correct discard (Issue #12) 2026-01-26 11:38:38 -06:00
__init__.py Add game engine foundation: enums, config, and RNG modules 2026-01-24 22:14:45 -06:00
config.py Add rules validator, win conditions checker, and coverage gap tests 2026-01-25 12:57:06 -06:00
engine.py Track stadium ownership for correct discard (Issue #12) 2026-01-26 11:38:38 -06:00
rng.py Add game engine foundation: enums, config, and RNG modules 2026-01-24 22:14:45 -06:00
rules_validator.py Add forced action queue for double knockouts (Issue #10) 2026-01-26 11:33:47 -06:00
turn_manager.py Add forced action queue for double knockouts (Issue #10) 2026-01-26 11:33:47 -06:00
visibility.py Track stadium ownership for correct discard (Issue #12) 2026-01-26 11:38:38 -06:00
win_conditions.py Add SelectPrizeAction executor and turn limit check (Issues #11, #15) 2026-01-26 11:04:03 -06:00