Dots and Boxes

Draw lines, close boxes and avoid handing over the long chain.

Play Now
Single play vs RabbitJack, or 2 players · Free, no sign-up, play-money only · Ages 16+

How to Play & Official Rules

Dots and Boxes starts with a grid of dots. Players take turns drawing one line between two neighboring dots, either horizontally or vertically. A line never goes diagonally and cannot be drawn twice.

Claiming boxes

When your line completes the fourth side of a box, you claim that box and score a point, and you must take another turn. This free move is the engine of the whole game: closing a box does not end your turn, so a single move can set off a run of captures.

Winning

The game ends when every line has been drawn. The player who has claimed the most boxes wins. Because lines can only be added and never removed, every move permanently changes what the next player can safely do.

House rules can differ slightly from the classic tabletop version. The HOW TO PLAY button inside the game always shows the exact rules in force for your match.

Strategy & Beating RabbitJack

At first, Dots and Boxes looks like a children's game of chance. In fact it is one of the deepest simple games ever invented, and the key idea is that giving away the third side of a box is dangerous.

Beating RabbitJack

RabbitJack is a pure-code NPC that follows a fixed routine: it will take free boxes when it can and avoid giving away boxes when it can. Your edge is planning ahead. Count the safe moves that remain, and steer the board so that RabbitJack runs out of safe moves first and must open a long chain for you.

Origins & History of Dots and Boxes

Dots and Boxes belongs to the category of pencil-and-paper games that need nothing more than a sheet of paper, a pen and a friend. Its best-known origin is a French one: in 1889 the mathematician Édouard Lucas, famous for his work on number theory and for inventing the Tower of Hanoi puzzle, described the game under the name la pipopipette. He is said to have played it with his students at the École Normale in Paris.

The game spread through Europe and North America in the following decades. It was known by many names, including Boxes, Square-Out, Paddocks and Dots, and generations of schoolchildren played it on the backs of exercise books. Its simple rules made it easy to teach in minutes, and the fact that a player could keep going after completing a box gave it an exciting rhythm of sudden swings.

Mathematicians took the game seriously in the twentieth century. The most important contribution came from Elwyn Berlekamp, a professor at the University of California, Berkeley, who studied it together with his students and wrote a book in 2000 called The Dots and Boxes Game: Sophisticated Child's Play. Berlekamp showed that the game depends on the structure of chains and loops, and that the right moment to sacrifice boxes in order to keep control can decide the whole result.

Computer scientists have also studied the game. Small boards have been solved completely by computer, with the result that the outcome depends on the size of the board and who moves first. On larger boards, nobody knows the perfect result, and the game remains an active research problem.

That mix of childhood simplicity and mathematical depth explains its lasting appeal. A beginner can enjoy a game in their first minute, while an expert can spend a lifetime refining the art of the double-cross.

Related Games

Play Dots and Boxes in the Lobby