Dots and Boxes is a pencil-and-paper game for two players. Players take turns drawing a line between two neighbouring dots. Whoever draws the fourth side of a box scores it and must move again. When every line is drawn, the player with more boxes wins.
The key to winning: never draw the third side of a box unless you have to, and learn the double-dealing move.
Rules
- Start with a grid of dots. A 3×3 board has 9 boxes and 16 dots.
- On your turn, draw one horizontal or vertical line joining two neighbouring dots.
- If your line completes the fourth side of one or two boxes, you score them and must draw another line.
- If your line completes no box, your turn ends.
- The game ends when all lines are drawn. The player with more boxes wins.
The game was first published by the French mathematician Édouard Lucas in 1889, under the name La Pipopipette.
Winning strategy
1. The opening: avoid third sides
A box with three sides drawn is a gift to your opponent. Early in the game, play only safe moves: lines that do not give any box its third side. Eventually safe moves run out, and the board breaks into chains (rows of boxes where taking one lets you take the next) and loops.
2. When safe moves run out: give away the least
Once every move gives something away, open the shortest chain on the board. A chain of one or two boxes costs you little.
3. Double-dealing: the move that wins games
Suppose your opponent opens a long chain of five boxes. The beginner takes all five and then has to open the next chain. The expert takes three, then draws the line at the far end of the last two boxes, leaving them as a pair for the opponent. This sacrifice is called a double-dealing move.
Your opponent takes the two boxes with one line, and then must move again, so they have to open the next chain for you. You give up two boxes to keep control: you will be the one collecting every long chain that follows. Try it against the Hard computer, which uses this trick itself.
4. The long chain rule
A long chain has three or more boxes. Because of double-dealing, the player who is forced to open the first long chain usually loses. The mathematician Elwyn Berlekamp, in his book The Dots and Boxes Game (2000), turned this into a counting rule:
Second player wants: dots + long chains = odd
A 3×3 board has 16 dots, an even number, so the first player wants an even number of long chains and the second player an odd number. Strong players spend the middle of the game shaping the board to get the count they need.
Frequently asked questions
Do you get another turn after completing a box?
Yes. Each time your line completes a box, you score it and must draw another line. You keep going until you draw a line that completes nothing, or the board is full.
Can Dots and Boxes end in a draw?
Yes, if the number of boxes is even. On a 4×4 board (16 boxes), an 8–8 finish is a draw. Boards with an odd number of boxes, like 3×3 or 5×5, always have a winner.
Is it better to go first or second?
It depends on the board size and how the chains form, not on a simple rule. The long chain rule tells each player which chain count to aim for.
How strong is the computer?
Easy often misses captures. Medium never gives boxes away while safe moves remain. Hard also uses double-dealing and searches the endgame exactly once few lines are left.
More: All math games · Game design glossary