A minimalist HTML5 Backgammon game in a single file. Play against a friend or the built-in AI. No dependencies, no backend – just open and play.
- Game Modes: Player vs. Player or Player vs. built-in AI
- Clear visuals: Highlighted valid moves, visible dice rolls & turn indicator
- Sound effects: Simple on/off toggle
- Responsive & offline-ready: Works on mobile and desktop – single HTML file
- Full rules: Hitting, entering from the bar, and bear-off supported
- Clone the repo or download the ZIP
- Open
index.htmlin your browser – done.
Just open https://99fk.github.io/backgammon-html in your browser to start playing !
In addition to the offline version, there is now an online mode
that allows two players to compete over the internet.
The connection is established peer-to-peer directly in the browser using WebRTC.
- Select a move: Click a point/checker, then click the target point
- Roll dice: Click the “Roll dice” button
This project is licensed under the GNU General Public License v3.0 (GPL-3.0).
You’re free to use, modify, and redistribute under the same terms.
Made with 🧠 + 🎲 + ☕ and a little help from ChatGPT (OpenAI).