How rexoul/knuckle_bones works
Knuckle_bones is a browser-based two-player dice game. Players place dice in columns, where matching values are removed from the opponent’s corresponding column; play ends when a board fills, and column totals determine the result. The script also provides an edit mode for changing cell and die values. The sampled source shows gameplay, scoring, event handling, and rendering in one file; the README adds no further capabilities. The HTML and CSS roles are suggested by the file tree, but their implementation details were not sampled.
Main entry points: script.js Game Input
Components 8
Game Play
- Game Input
script.js - Turn Rules
script.js - Scoring
script.js
Board Editing
- Edit Controls
script.js
Game Display
- Game Renderer
script.js - Game Page
index.html - Game Styles
style.css
Other components
- Player
Connections 7
- Player → Game Input: clicks
script.js - Player → Edit Controls: edits
script.js - Game Input → Turn Rules: dispatches
script.js - Turn Rules → Scoring: scores
script.js - Game Input → Game Renderer: renders
script.js - Edit Controls → Game Renderer: renders
script.js - Scoring → Game Renderer: displays totals
script.js