Mantimon TCG - Monster collecting trading card game
Build foundation for game engine testing with comprehensive mocks and utilities: Infrastructure Created: - src/test/mocks/phaser.ts (33 tests) * MockEventEmitter - Event system with on/once/off/emit * MockScene - Scene lifecycle and factories * MockGame - Game instance with scale and scene manager * MockContainer - Game object container with child management * MockSprite - Image sprites with texture support * MockText - Styled text objects * MockGraphics - Shape drawing API * MockLoader - Asset loading simulation - src/test/helpers/gameTestUtils.ts (22 tests) * createMockGameState() - Complete game state with players * createMockCardDefinition() - Card definitions with type helpers * createMockCardInstance() - Card instances with damage/status * createGameScenario() - Full game setups with cards in zones * setupMockScene() - Scene setup with game instance * Type-specific helpers: createMockPokemonCard(), createMockEnergyCard(), etc. - src/test/README.md * Complete documentation with usage examples * Testing patterns and best practices * Troubleshooting guide This infrastructure enables testing of all Phaser game objects (Board, Card, Zone, MatchScene, etc.) without requiring WebGL/Canvas. All 1,256 tests passing. Foundation for TEST-002 through TEST-009 (scene and state testing). 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. |