Mantimon TCG - Monster collecting trading card game
Add comprehensive test coverage for the main game scene: Test Coverage: - Constructor and scene key registration - init() method - state reset - create() method - board setup, StateRenderer creation, event subscription - update() loop - intentionally minimal design - shutdown() method - cleanup and event unsubscription - Event handling - state updates and resize events - Event subscription lifecycle - proper bind/unbind - Integration tests - full lifecycle execution - Edge cases - rapid cycles, large states Key Testing Challenges Solved: - Phaser canvas dependency - mocked Phaser.Scene with minimal API - gameBridge integration - mocked event system with spy functions - StateRenderer mocking - included all necessary methods (clear, getPlayerZones, etc.) - Container API - added removeAll() for proper cleanup testing All 1,282 tests passing (26 new MatchScene tests). Foundation for TEST-004 (Card rendering) and TEST-005 (StateRenderer). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| backend | ||
| docs | ||
| frontend | ||
| .gitignore | ||
| CLAUDE.md | ||
| CONTRIBUTING.md | ||
| PROJECT_PLAN.md | ||
| test-prize-fix.md | ||
| TESTING.md | ||
| verify-fix.sh | ||
| VISUAL-TEST-GUIDE.md | ||
Mantimon TCG Documentation
Active Documentation
| File | Description |
|---|---|
ARCHITECTURE.md |
Technical architecture overview covering frontend (Vue+Phaser), backend (FastAPI), database schema, real-time communication, game engine design, and offline fork considerations. |
GAME_RULES.md |
Game rules document defining campaign structure, base ruleset, energy system, deck building, win conditions, turn structure, card types, and status conditions. |
Legacy Documentation
Historical documents from completed development phases, preserved for reference.
| File | Description |
|---|---|
legacy/SYSTEM_REVIEW.md |
Comprehensive code review of the core game engine (Jan 2026). Identified 15 issues across models, effects, and engine - all resolved. 826 tests passing. |
legacy/PROJECT_PLAN_ENERGY_EVOLUTION.md |
Implementation plan for energy/tool attachment refactor and evolution stack system. Changed attached_energy/attached_tools from list[str] to list[CardInstance]. Completed Jan 2026. |