How ruupedev/darts-counter works
Darts Counter is a browser-based scoring app. Players choose a starting score, enter throws using either a numeric pad or dartboard-style controls, and accept each turn to update scores and averages, advance play, and detect a winner. The JavaScript excerpt also shows undo/history and UI updates. The app is small, so its game behavior is represented as responsibilities within the single main script; the available evidence does not establish every page-to-script wiring detail.
Main entry points: dartsCounter2.js Game Display · dartsCounter2.html Darts Counter Page
Components 12
Browser Interface
- Darts Counter Page
dartsCounter2.html - Responsive Styling
dartsCounter2.css - Game Display
dartsCounter2.js
Throw Input
- Numeric Pad
dartsCounter2.js - Dartboard Input
dartsCounter2.js
Scoring and Play
- Player Setup
dartsCounter2.js - Game Modes
dartsCounter2.js - Turn Scoring
dartsCounter2.js - Undo History
dartsCounter2.js - Score and Averages
dartsCounter2.js - Win Detection
dartsCounter2.js
Other components
- Player
Connections 11
- Player → Darts Counter Page: plays
README.md - Player → Player Setup: adds players
README.md - Player → Game Modes: selects mode
README.md - Player → Numeric Pad: enters throws
README.md - Player → Dartboard Input: enters throws
README.md - Numeric Pad → Game Display: updates display
dartsCounter2.js - Dartboard Input → Game Display: shows throw
dartsCounter2.js - Turn Scoring → Undo History: saves history
dartsCounter2.js - Turn Scoring → Score and Averages: updates stats
dartsCounter2.js - Turn Scoring → Game Display: refreshes display
dartsCounter2.js - Win Detection → Game Display: shows winner
dartsCounter2.js