mantimon-tcg/backend
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
..
app Track stadium ownership for correct discard (Issue #12) 2026-01-26 11:38:38 -06:00
references Adding manual test file for reference 2026-01-25 14:11:42 -06:00
tests Track stadium ownership for correct discard (Issue #12) 2026-01-26 11:38:38 -06:00
.gitignore Add backend foundation with uv, Black, and pre-commit hooks 2026-01-24 00:12:33 -06:00
.python-version Add backend foundation with uv, Black, and pre-commit hooks 2026-01-24 00:12:33 -06:00
PROJECT_PLAN_ENERGY_EVOLUTION.md Implement energy/tools as CardInstance + evolution stack + devolve effect 2026-01-25 23:09:40 -06:00
PROJECT_PLAN.json Add GameEngine orchestrator with full game lifecycle support 2026-01-25 13:21:41 -06:00
pyproject.toml Add backend foundation with uv, Black, and pre-commit hooks 2026-01-24 00:12:33 -06:00
SYSTEM_REVIEW.md Track stadium ownership for correct discard (Issue #12) 2026-01-26 11:38:38 -06:00
uv.lock Add backend foundation with uv, Black, and pre-commit hooks 2026-01-24 00:12:33 -06:00