Roll the dice against a real search engine
Press Roll Dice to begin
White167pip
Black167pip
0
Wins
0
Losses
Options

Play Backgammon Online vs the Computer

Play backgammon — the classic dice-and-checkers race game — directly against the computer, free, in your browser, with no download and no sign-up. You play the white checkers by default and move first; the AI plays black. Press Roll Dice, then click one of your checkers and the highlighted point you want to move it to. This is a single-player game built around an honest AI opponent: Beginner plays loose moves you can punish, Medium plays a solid game, and Hard runs a two-ply expectiminimax engine that averages over the dice. Legal moves are highlighted, both pip counts are always on screen, and your wins and losses are tracked per difficulty.

How the AI thinks

Backgammon is not a perfect-information game like chess or Othello — the dice make it a game of chance as well as skill — so the opponent here cannot use plain minimax. Instead it uses expectiminimax, the classic algorithm for games with randomness: alongside the usual move nodes it adds chance nodes that average an evaluation over all 21 distinct dice rolls, each weighted by how likely it is (a double is half as likely as a mixed roll). On its turn the engine first generates every legal way to play the two numbers it rolled — respecting the rules that you must use as many dice as you can, and the larger die if only one will go — and at the Hard level it looks a move further, weighing your most likely replies across the whole dice distribution. Each position is scored on the things that actually win backgammon games: the pip count (who is ahead in the race), checkers already borne off, made points and primes that block the opponent, and the risk of leaving a blot that can be hit. The whole engine runs locally in your browser, in a background worker thread so the page stays responsive, and nothing is sent to a server. It is a strong, honest opponent, though we do not claim it plays perfectly.

How to play backgammon — the rules

Tips to beat the AI

Want to go deeper? Read our guide on how to analyze a backgammon position with a free online analyzer — or the same for chess, checkers, Othello, and mancala.

FAQ

Can I play backgammon online against the computer?

Yes, this page lets you play backgammon online against the computer. Pick a difficulty, choose your colour, roll and play. Works on desktop and mobile, free, with no account.

How does the AI decide its moves?

The AI decides its moves using expectiminimax — minimax with chance nodes that average over the 21 dice rolls. Hard looks a move ahead across the dice distribution and scores positions on the race, made points, primes and blot risk. The whole search runs locally in your browser, so nothing is sent to a server.

What is the bar and what is a blot?

A blot is a point with a single checker — it can be hit. The bar is the middle strip where hit checkers wait; a checker on the bar must re-enter the opponent's home board before that player moves anything else. You must re-enter every checker off the bar before making any other move, so a single well-timed hit can cost your opponent several turns.

How do I bear off?

Once all fifteen checkers are in your home board, each die removes a checker from its matching point; a die higher than your highest occupied point bears off from that point. First to bear off all fifteen wins. You cannot start bearing off while any checker sits outside your home board or on the bar.

Is it free? Does it work offline?

Yes, this backgammon game is completely free, no download, no sign-up. The engine runs client-side, so once loaded the game keeps working without a connection. There are no ads and no account required either. More AI games: AI Chess, AI Checkers, AI Othello or AI Go.

More AI games on LK Forge