How petko-todorov/belot-scorer works
Belot Scorer 2 is a mobile Bridge-Belote score tracker. A player opens or creates a match, enters each team’s round points, and the app updates totals; when a game reaches its end condition, the player confirms completion and the match history records the result. The menu lists, resumes, and deletes saved matches. The graph follows the React route and game-state ownership shown in excerpts; README-described capabilities are included, but no unshown Android-to-web wiring is asserted.
Main entry points: Game.jsx Game screen · index.jsx Route dispatch · Menu.jsx Match menu · useGame.js Game state
Components 14
App navigation
- React entry
src/main.jsx - App shell
src/App.jsx - Route dispatch
src/routes/index.jsx - Home screen
src/pages/Home.jsx - Match menu
src/pages/Menu.jsx
Match workflow
- Game screen
src/pages/Game.jsx - Game state
src/hooks/useGame.js - Score validation
src/utils/score.js
Score presentation
- Score entry
src/components/ScoreInput.jsx - Numeric keypad
src/components/NumericKeypad.jsx - Game history
src/components/GameHistory.jsx - End confirmation
src/components/ModalWin.jsx
Local persistence
- Match storage
src/utils/storage.js
Other components
- Player
Connections 15
- Player → React entry: opens app
- React entry → App shell: renders
src/main.jsx - App shell → Route dispatch: renders routes
src/App.jsx - Route dispatch → Home screen: routes to
src/routes/index.jsx - Route dispatch → Match menu: routes to
src/routes/index.jsx - Route dispatch → Game screen: routes to
src/routes/index.jsx - Match menu → Match storage: loads and deletes
src/pages/Menu.jsx - Match menu → Game screen: opens match
src/pages/Menu.jsx - Game screen → Game state: uses state
src/pages/Game.jsx - Game screen → Score entry: renders entry
src/pages/Game.jsx - Game screen → Game history: renders history
src/pages/Game.jsx - Game screen → End confirmation: renders confirmation
src/pages/Game.jsx - Score entry → Score validation: clamps input
src/components/ScoreInput.jsx - Game state → Score validation: clamps submitted score
src/hooks/useGame.js - Game state → Match storage: loads and saves match
src/hooks/useGame.js