mantimon-tcg/backend
Claude 7885b272a4
Honor RulesConfig for prize cards vs points in frontend game board
The game board now conditionally renders prize card zones based on
the RulesConfig sent from the backend:

- Add rules_config field to VisibleGameState in backend (visibility.py)
- Add rules_config to frontend game types and game store
- Update layout.ts to accept LayoutOptions with usePrizeCards and prizeCount
- Update StateRenderer to conditionally create PrizeZone objects
- Update Board to handle empty prize position arrays gracefully
- Add game store computed properties: rulesConfig, usePrizeCards, prizeCount
- Add tests for conditional prize zone rendering

When use_prize_cards is false (Mantimon TCG points system), the prize
zones are not rendered, saving screen space. When true (classic Pokemon
TCG mode), the correct number of prize slots is rendered based on
the rules config's prize count.

https://claude.ai/code/session_01AAxKmpq2AGde327eX1nzUC
2026-02-02 09:22:44 +00:00
..
app Honor RulesConfig for prize cards vs points in frontend game board 2026-02-02 09:22:44 +00:00
data Add energy type placeholder images 2026-02-01 20:51:29 -06:00
project_plans Add integration tests for WebSocket game flow (TEST-002) 2026-01-30 00:02:40 -06:00
references Switch to testcontainers for automatic test container management 2026-01-28 16:49:11 -06:00
scripts Simplify card image URLs to use set-based paths 2026-01-27 16:16:51 -06:00
tests Add config API endpoint for frontend game settings 2026-01-31 15:43:41 -06:00
.env.example Implement auth composables and starter selection (F1-003, F1-004, F1-005) 2026-01-30 15:36:14 -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
alembic.ini Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
CLAUDE.md Refactor to dependency injection pattern - no monkey patching 2026-01-28 22:54:57 -06:00
docker-compose.yml Implement Phase 2: Authentication system 2026-01-27 21:49:59 -06:00
PROJECT_PLAN_MASTER.json Mark Phase 4 (Game Service + WebSocket) as complete 2026-01-30 07:35:40 -06:00
pyproject.toml Implement ProfilePage and profanity filter for display names (F1-006) 2026-01-30 16:06:42 -06:00
uv.lock Implement ProfilePage and profanity filter for display names (F1-006) 2026-01-30 16:06:42 -06:00