Commit Graph

2 Commits

Author SHA1 Message Date
7203ac4c2d Refactor game logic and improve state management, add some tests
- Added `handleHit` function to handle hit types (single, double, triple, home run).
- Enhanced `handleBall` and `handlePitch` to track `scoredRunners` and update scores dynamically.
- Updated history to include both `gameState` and `lineupState`.
- Refactored UI components (`GameStateDisplay`) to use unified score structure and display detailed base states.
- Styled active lineup tab with visual emphasis.
- Introduced utility functions `encodeInning` and `decodeInning` for inning state management.
2024-12-12 06:27:39 -06:00
9cc3793a17 initial commit 2024-12-05 16:51:49 -06:00