How to Play Dots and Boxes
Dots and Boxes is one of the oldest and most elegantly deceptive strategy games in the pencil-and-paper canon. The board is a grid of dots — choose 3×3 for a quick warm-up, 5×5 for the standard competitive game, 7×7 for an extended session, or 9×9 and 11×11 when you want chains long enough to plan several moves ahead. On each turn you click or tap one free edge between two adjacent dots. When that edge closes all four sides of a square box, you score a point, your seat number is stamped inside the box in ink blue, and you get to move again immediately — the chain rule. If the edge doesn't close a box, play passes to the next player.
The AI takes its turn automatically after yours. On Easy it grabs any box it can close but is otherwise random. On Medium it also avoids edges that set you up. On Hard, once every remaining edge gives something away, it opens the one that surrenders the least instead of picking at random. When the last edge on the grid has been claimed, whoever has more boxes wins. Every grid here holds an odd number of boxes — 9, 25, 49, 81 or 121 — so a head-to-head game can never finish level; ties only turn up when three or four players split the board.
Daily Challenge mode switches to the vs-AI game and seeds the AI from today's date, so every player who tries Daily on the same calendar day draws the same sequence of AI choices. It keeps the grid size and difficulty you already have selected.
Strategy Tips
- Count to three before you draw — an edge that takes a box from two drawn sides to three is giving your opponent a gift. Scan the board for boxes with exactly two free edges before each move and avoid being the one who triggers them.
- Volunteer the short chain — when you have no safe moves and must open a chain for the opponent, sacrifice the shortest available run. You lose a few points but recapture control when the longer chains get opened.
- Plan the double-cross — instead of taking every last box in a chain, leave exactly two edges open on the final box. Your opponent claims those boxes but is forced to open the next chain for you, often netting you far more boxes overall.
- Edges on the outer boundary are safer early — a boundary edge borders just one box, while every interior edge is shared between two, so drawing on the rim can only ever put one box within reach. It is the same reasoning the Hard AI uses when it is forced to give something away.
- On 7×7, carve the board into regions — with 49 boxes, full-board chain analysis is impractical. Think of the grid as a set of smaller regions, control the chains in two or three of them, and let the AI take the leftovers.
The Chain Rule in Depth
The chain rule — extra turn on box completion — is what transforms a simple edge-drawing game into a deep strategic contest. The moment you complete a box, the board state shifts: you may be able to ride a cascade of connected boxes all the way to a run of five or six points in a single move, while your opponent watches. Conversely, setting up such a cascade for your opponent in error is the most common way to lose a game that looks even on the scoreboard. The skill in Dots and Boxes is almost entirely about predicting and controlling chains before they form — not reacting to them after the fact.
A Brief History
The game is generally attributed to the French mathematician Édouard Lucas, who described it under the name La Pipopipette in 1889. It spread through Europe and North America as a schoolyard pencil-and-paper game throughout the twentieth century, typically played on small grids to pass time in notebooks and the backs of exercise books. The mathematics of optimal Dots and Boxes play was formalised by Elwyn Berlekamp in his 1982 work on combinatorial game theory, where he demonstrated that hard AI play reduces to a Nim-like chain-sacrifice problem. Today the game appears in dozens of browser implementations, mobile apps, and competitive puzzle publications, but the core rules remain exactly as Lucas described them — which is a reliable sign that the game got them right the first time.
Frequently Asked Questions
How do you score points in Dots and Boxes?
You score one point for every box you complete by drawing its fourth and final edge. When you complete a box it gets stamped with your seat number — the AI's boxes get an A — and you earn another turn immediately — that bonus turn is the chain rule, and it can cascade across multiple adjacent boxes in a single move. At game end, whoever holds more boxes wins.
What is the chain rule?
Whenever you complete one or more boxes in a single move, you get to draw another edge immediately without passing play to your opponent. This can cascade: if your extra edge also completes a box, you keep going. Chains of three, four, or more boxes in a row are common on larger grids, and controlling who opens each chain is the central strategic skill of the game.
What is the double-cross strategy?
Instead of taking every box in a chain, you intentionally claim all but the last two edges on the final box. Your opponent is forced to take that box (and gain a couple of points), but doing so they must open the next chain for you, often a much longer run. The double-cross sacrifices a small gain now to win a larger one on your next turn.
How does the AI difficulty differ between Easy, Medium, and Hard?
Easy AI always takes a box it can close, but is otherwise random. Medium AI does the same and additionally avoids any edge that would hand you an immediate box. Hard AI matches Medium until every remaining edge gives something away — then, instead of choosing at random, it plays the edge touching the fewest already-drawn sides, so it surrenders as little as possible.
What is Daily Challenge mode?
Daily Challenge switches you to the vs-AI game and seeds the AI's random decisions from today's date, so everyone playing Daily on the same calendar day draws the same sequence of AI choices. Grid size and difficulty stay on whatever you have selected. Click the Daily button in the controls to switch into this mode.
Does Dots and Boxes work on mobile?
Yes — the grid auto-sizes to your screen and tapping an edge claims it. Hit areas are padded to at least 24 pixels so they register reliably on small phone screens. The 3×3 and 5×5 grids are comfortable on any smartphone; 7×7 and larger are best on a tablet or bigger display where you can see the whole board at once.
Can I play Dots and Boxes with friends on the same device?
Yes. The first control above the board switches between vs AI and pass-and-play for 2, 3 or 4 players on one screen. Each seat gets its own colour — navy, red, green and purple — and every box it closes is filled in that colour and stamped with the seat number, so a four-way board stays readable at a glance. The chain rule works the same way in every seat count: close a box and you move again before the turn passes on. Difficulty and Daily Challenge only apply to the vs-AI game, so both controls switch off in pass-and-play.
Is there a leaderboard?
Yes. Your box count is checked against the board at the end of every vs-AI game, win or lose, and the leaderboard opens automatically — with a name-entry box if your score reaches the top 10, so you'll know immediately if you have a new high score to claim. Daily Challenge scores and regular game scores share the same leaderboard. Pass-and-play games are not ranked — a hot-seat box count depends on how many people are sharing the board, so only vs-AI games are submitted.