Dots and Boxes

Dots and boxes is the pencil game from the back of the school notebook. Draw one line at a time. Close a box, it is yours, and you must draw again.

How to play dots and boxes

  1. On your turn, draw one line between two dots that are side by side.
  2. If you draw the fourth side of a box, the box is yours and you draw again.
  3. When all boxes are closed, the player with the most points wins.

On some sheets a box has a star. It is worth 3 points instead of 1. Some sheets are not square either: there is a cross, a ring and a staircase.

The first rule: no third side

Never draw the third side of a box while you have another choice, because the other player closes it. Both players avoid third sides for a while, and the sheet fills up. Then comes the moment when only bad lines are left. Beginners think the game is decided by luck from here. It is the point where it starts.

The trick that wins games

At the end, the open boxes form rows, called chains. Who opens a chain gives away all its boxes. Suppose two chains of five boxes are left and the other player has to open the first one.

  • If you take all five, you must draw again, and you open the second chain. Result: 5 to 5.
  • If you take three and close the last two boxes off with one line at the end, the other player gets these two. But now they must draw again and open the second chain for you. Result: 8 to 2.
Two chains of five boxes: taking all five gives 5 to 5, taking three and leaving two gives 8 to 2
Take three, leave two, and the second chain is yours.

The gift of two boxes keeps you in control. It works with every chain of three boxes or more, and you can repeat it until the last chain, which you take whole. The mathematics behind it is explained on a page of the UCLA mathematics department.

What to think about before the end

MomentQuestion to ask
First linesNone. Play anywhere, but no third sides
Half of the sheet is drawnWhere will long chains appear, and how many?
Few safe lines leftWho will have to open the first chain? Count the safe lines
You have to open somethingWhich chain is the shortest? Open that one

The number of safe lines decides who must open first. A single line in the right place can cut a chain in two, or change whose turn it is when the safe lines run out.

Players and sheets

The computer players go from Lily, who gives boxes away, to Iris, who sees the end of the game very well. With friends, two to four people play on one device, with sheets from 3 × 3 to 7 × 7 boxes. Today shows a half-played sheet that can be won. You draw next and have to find the way.

The game was first published in the 19th century by the French mathematician Édouard Lucas, who called it la pipopipette. You can still play it his way, with paper and two pencils.

Questions and answers

Does the first player always win?

No. On most sheets it depends on the number of chains at the end, and both players can influence that.

Do I have to take a box I can close?

No. You may draw any free line. Leaving two boxes at the right time is the best trick in the game.

What size is best for beginners?

3 × 3 boxes. A game takes a minute or two and you already see a chain at the end. 5 × 5 is a good size for two adults.

Can three or four people play?

Yes, on one device in With friends. With more than two players, chain tricks are harder, because the gift may go to the wrong person.

Can I play on paper?

Yes. Draw a grid of dots, one more in each direction than the boxes you want, and write your initial in every box you close.

More games to try

All number games and puzzles