mantimon-tcg/backend/app
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
..
api Add config API endpoint for frontend game settings 2026-01-31 15:43:41 -06:00
core Honor RulesConfig for prize cards vs points in frontend game board 2026-02-02 09:22:44 +00:00
data Phase 3: Collections + Decks - Services and DI architecture 2026-01-28 11:27:14 -06:00
db Add has_starter_deck to user profile API response 2026-01-30 23:14:04 -06:00
repositories Implement UserRepository pattern with dependency injection 2026-01-30 07:30:16 -06:00
schemas Add has_starter_deck to user profile API response 2026-01-30 23:14:04 -06:00
services Implement ProfilePage and profanity filter for display names (F1-006) 2026-01-30 16:06:42 -06:00
socketio Fix WebSocket game:join to emit game:state event 2026-02-01 12:27:01 -06:00
__init__.py Add backend foundation with uv, Black, and pre-commit hooks 2026-01-24 00:12:33 -06:00
config.py Implement auth composables and starter selection (F1-003, F1-004, F1-005) 2026-01-30 15:36:14 -06:00
main.py Add config API endpoint for frontend game settings 2026-01-31 15:43:41 -06:00