How lazydukk/rtrg works
Main Components
a. User Interface Layer
• HTML Structure (index.html)
• Styling Components (style.css)
• Interactive Elements (script.js)
b. Core Game Logic
• Tile Distribution System
• Random Tile Generator
• Rack Management System
c. Future Components (shown differently to indicate planned features)
• Move Evaluation System
• Equity Calculator
• Team Gaming Features
• [User Interface Layer]
• ↓
• [Game Logic Layer]
• ↓
• [Data Layer]
Detailed Component Breakdown
User Interface Layer:
• Tile Rack Display, Controls, Score Display
• Use rounded rectangles for UI components
Game Logic Layer:
• Random tile generator component
• Rack balance evaluation logic
Data Layer:
• At the bottom
• Tile distribution data storage