How simlmx/chickenroll works
Main Components
A. Frontend Layer (UI Package):
• React Components Structure
• Game Board Components (CantStopBoard)
• Interactive Elements (DiceBoard, Die, MoveButtons)
• Components (ScoreBoard, MoveHistory)
• State Management
• Utility Functions
B. Game Logic Layer (Game Package):
• Core Game Rules
• Math/Probability Calculations
• Game State Management
• Constants and Types
┌─────────────────────────┐ ┌─────────────────────────┐
• UI Layer │ ←──→ │ Game Layer │
• (React Frontend) │ │ (Game Logic Core) │
• ┘ └─────────────────────────┘
Important Elements to Highlight
A. UI Package:
• Component hierarchy starting from CantStopBoard
• Event handling flow through MoveButtons
• State management through selectors
• Visual component relationship (Board → Mountain → Die)
B. Game Package:
• Math/probability calculations flow
• Game rules implementation
• Type system and constants
• Test coverage
Build process flow
Remember to indicate that this is a standalone web application, with the game logic being independent of the UI implementation, allowing for potential future UI changes or alternative implementations.