How bekzod-turaev/small-game works
This repository implements a browser-based two-player dice game. Players roll to build a turn score, hold to add it to their total, and the first to reach 50 wins; New Game resets play. The sampled script owns both game state and DOM interaction. The tree lists HTML and CSS, but their contents were not provided, so their structure and styling are not represented.
Main entry points: script.js Game controller
Components 4
Game runtime
- Game interface
- Game controller
script.js - Game state
script.js
Other components
- Player
Connections 4
- Player → Game interface: clicks controls
- Game interface → Game controller: dispatches clicks
script.js - Game controller → Game state: updates scores
script.js - Game controller → Game interface: updates display
script.js