mantimon-tcg/backend/tests/core
Cal Corum eef857e972 Add turn manager with phase state machine and between-turn effects
- Implement TurnManager class for turn/phase state machine
- Phase transitions: SETUP -> DRAW -> MAIN -> ATTACK -> END
- Turn start: reset counters, draw card, flip energy (Pokemon Pocket style)
- Turn end: apply status damage (poison/burn), check recovery (sleep/burn flip)
- Between-turn paralysis auto-removal
- Knockout processing with scoring and forced action setup
- Integration with win condition checking (deck-out, no Pokemon, turn limit)
- 60 tests covering all functionality
- 644 total core tests passing at 97% coverage

Completes HIGH-007 and TEST-011 from PROJECT_PLAN.json
Week 4 (Game Logic) now complete - ready for Week 5 (Engine & Polish)
2026-01-25 13:02:56 -06:00
..
test_effects Add effects system with configurable weakness/resistance 2026-01-25 00:25:38 -06:00
test_models Add rules validator, win conditions checker, and coverage gap tests 2026-01-25 12:57:06 -06:00
__init__.py Add game engine foundation: enums, config, and RNG modules 2026-01-24 22:14:45 -06:00
conftest.py Add rules validator, win conditions checker, and coverage gap tests 2026-01-25 12:57:06 -06:00
test_config.py Add rules validator, win conditions checker, and coverage gap tests 2026-01-25 12:57:06 -06:00
test_coverage_gaps.py Add rules validator, win conditions checker, and coverage gap tests 2026-01-25 12:57:06 -06:00
test_rng.py Add game engine foundation: enums, config, and RNG modules 2026-01-24 22:14:45 -06:00
test_rules_validator.py Add rules validator, win conditions checker, and coverage gap tests 2026-01-25 12:57:06 -06:00
test_turn_manager.py Add turn manager with phase state machine and between-turn effects 2026-01-25 13:02:56 -06:00
test_win_conditions.py Add rules validator, win conditions checker, and coverage gap tests 2026-01-25 12:57:06 -06:00