Backgammon Palace | HTML5 Game – Online Multiplayer Backgammon
Backgammon Palace is a backgammon game set in an oriental palace: inlaid wood, jewel-coloured points, gold and lantern light, made with pure HTML5 Canvas and JavaScript. Play Backgammon, Nackgammon, Long Nardy or Plakoto online with friends and players from anywhere, against three levels of computer players, or with a friend on one device. Online play needs no game server of your own: private rooms with a code or an invite link, quick match, emotes and quick messages, reconnect, provably fair dice, and the game goes on even when the host leaves. Coins, palace tables, a shop, achievements and 60 challenge positions keep players coming back.
It runs in any modern browser on mobile and desktop (landscape), from a web server or straight from disk. No framework, no build step.
Gameplay
- 4 game types: Backgammon (doubling cube, Crawford rule, gammons and backgammons), Nackgammon, Long Nardy and Plakoto
- Single games or matches to 3, 5 or 7 points
- Play online, vs computer (Novice, Skilled, Master) or Pass & Play on one device
- Computer players with a small neural network per game type, trained by self-play
- Tap or drag to move, glowing targets, undo, hints, pip counts, forced moves played automatically (all can be switched in Settings)
- 60 challenge positions in 6 chapters (bearing off, the race, hitting, making points, coming in, the cube) with up to 3 stars, plus a daily challenge
- 12 animated How to Play pages with demos on the real board
Progress and shop
- Coins, levels and experience, 27 achievements, statistics per game type
- 4 palace tables with entry fees and prizes
- Daily gift calendar and a fortune wheel
- Shop with 10 checker sets, 8 boards, 4 dice sets, 3 emote packs and 3 chat packs, with prices and level locks
- Online, each player’s own checkers and dice are shown to the other player
- Progress is saved on the device: no account needed
Online multiplayer
- Private rooms with a short code and an invite link
- Quick match: players who want the same game meet at one table
- Lobby with ready flags and computer seats
- Provably fair dice: the host cannot choose the dice, and every roll is checked by every player
- 23 painted emotes and 18 quick messages (more in the shop)
- Turn timer with autoplay after missed turns
- Reconnect after a page reload or a lost connection, same seat
- The host can leave: the other player takes the room over and the game goes on
- Peer-to-peer connections encrypted by the browser, encrypted signaling, every move checked by the rules
- One setting switches online play off completely
Online Play Uses Third-Party Services
Important: online play needs no game server of your own, but to let players find each other it uses free public services run by third parties: the PeerJS cloud server, public MQTT brokers (EMQX, HiveMQ) and public STUN servers (Google, Cloudflare). These are external services: they are not part of this item, are not run or controlled by its author, have their own terms, policies and limits, and can change or stop at any time. No account for them is included or needed. You can use your own servers instead (they may have their own costs), or switch online play off.
- Works out of the box with the free public PeerJS, MQTT and STUN services (external third-party services with their own terms and limits)
- Your own PeerJS server, MQTT broker and TURN server can be set in the config file (external accounts or hosting may be required; each has its own costs)
- Online play can be switched off with one setting: the game then makes no outside connection at all
Third-party services disclaimer: Backgammon Palace does not include any server, hosting or network service. Services such as the PeerJS cloud server, the public MQTT brokers broker.emqx.io and broker.hivemq.com and the Google and Cloudflare STUN servers are provided by third parties: each one has its own terms and policies, may have usage limits, and may change, slow down or stop at any time; your own or paid alternatives may require their own accounts and involve fees or other costs. You are responsible for the services you use with this item, for complying with their terms and with the laws that apply to you (for example privacy rules such as GDPR), and for any costs they involve. The author of this item is not affiliated with these companies, does not control their services and is not responsible for their availability or performance.
Ads and Analytics Hooks
The game calls two hooks in the config file, at the start and at the end of every game, where you can add your own analytics or ads. No ad network or analytics service is included. Any service you connect needs its own external account, has its own terms and policies, and may involve costs or revenue sharing that are between you and that service.
For developers
- Pure HTML5 Canvas + JavaScript, clean and commented code, no framework lock-in
- Every setting in one commented config file: rules, match lengths, computer levels, coins, tables, prices, shop items, online timers
- Rules engine in its own file with no drawing code; challenge positions are readable data
- Serverless multiplayer library included (rooms, lobby, reconnect, host hand-over, fair dice)
- Easy reskin: all art is PNG, all sounds are MP3, fonts are WOFF2
- Responsive layout for every landscape screen shape, sharp on high-DPI screens; touch, mouse and keyboard
- Detailed documentation with a Quick Start guide
What you get
- The complete game (game folder)
- Documentation (documentation folder)
Credits
All art, sound effects and music were made for this item. Fonts: Lilita One and Baloo 2 (SIL Open Font License).