Skip to content

99fk/backgammon-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Backgammon HTML

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.

🎮 Features

  • 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

▶️ Quick Start

  1. Clone the repo or download the ZIP
  2. Open index.html in your browser – done.

🚀 Play Now

Just open https://99fk.github.io/backgammon-html in your browser to start playing !

🌐 Online Version

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.

👉 Try Backgammon Online

⚙️ Controls

  • Select a move: Click a point/checker, then click the target point
  • Roll dice: Click the “Roll dice” button

📦 License

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.

❤️ Credits

Made with 🧠 + 🎲 + ☕ and a little help from ChatGPT (OpenAI).

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages