Dots and Boxes Game

The classic pencil-and-paper game for two players. Connect dots to form boxes and claim them as your own!

How to Play: Two players take turns connecting adjacent dots (horizontally or vertically). When a player completes the fourth side of a box, they claim that box by placing their initial inside and get an extra turn. The game ends when all possible lines are drawn. The player with the most boxes wins.

Player vs Player
Player vs Computer
Player 1
0
Boxes Claimed
Player 2
0
Boxes Claimed
1
Current Turn:
Player 1
Total boxes: 25
Game Over!

Player 1 wins with 13 boxes!

Player 1: 13 boxes | Player 2: 12 boxes

Move History

Moves: 0

About Dots and Boxes

Dots and Boxes is a pencil-and-paper game for two players first published in the 19th century by French mathematician Édouard Lucas. It has gone by many other names, including the game of dots, boxes, dot to dot grid, and pigs in a pen.

Strategy: The game starts with an empty grid of dots. Players take turns adding a single horizontal or vertical line between two unjoined adjacent dots. A player who completes the fourth side of a box earns one point and takes another turn. The game ends when no more lines can be placed. The winner is the player with the most points.

Game Strategy

Control the Board

Try to control the center of the board early in the game. This gives you more opportunities to create boxes.

Chain Reactions

Create situations where completing one box forces your opponent to give you another box, creating a chain reaction.

Defensive Play

Avoid giving your opponent the opportunity to create long chains of boxes. Sometimes it's better to sacrifice a single box to prevent a chain.

Forced Moves

Look for moves that force your opponent to give you boxes. The "double-cross" strategy involves giving away a small number of boxes to gain more later.

Mathematical Analysis

Grid Size Total Dots Total Boxes Possible Lines Average Game Length Difficulty
3x3 16 9 24 15-20 moves Beginner
4x4 25 16 40 25-35 moves Easy
5x5 36 25 60 40-55 moves Medium
6x6 49 36 84 60-80 moves Medium
7x7 64 49 112 85-110 moves Hard
8x8 81 64 144 115-150 moves Hard
9x9 100 81 180 150-200 moves Expert
10x10 121 100 220 190-250 moves Master

Game Variations

Classic Dots and Boxes: The standard game with two players taking turns drawing lines and claiming boxes.

1

Misère Dots and Boxes: A variation where the player who completes the last box loses. This changes the strategy significantly as players try to avoid completing boxes.

2

Dots and Boxes with Diagonal Lines: A more complex version where players can also draw diagonal lines between dots, creating triangular boxes.

3

Team Dots and Boxes: Played with four players in two teams. Teammates sit opposite each other and work together to claim boxes.

Frequently Asked Questions

The optimal strategy involves controlling "long chains" of boxes. Expert players try to avoid being the one to start a long chain, as the player who starts a chain typically loses control of it. The key is to force your opponent to open a long chain, then you can take all but the last few boxes in the chain.

On smaller boards, there can be a first-player advantage if they play optimally. However, on larger boards with optimal play, the game often ends in a draw or with a very small margin. In practice, the first player often has a slight psychological advantage because they control the initial pace of the game.

Yes, Dots and Boxes can end in a tie if both players claim an equal number of boxes. This is more common on boards with an even number of total boxes. On boards with an odd number of boxes, a tie is impossible unless players make mistakes.

The double-cross strategy involves deliberately giving your opponent a small number of boxes (usually 2) in order to gain control of a long chain. By sacrificing 2 boxes, you force your opponent to make the next move in the chain, allowing you to claim all the remaining boxes in that chain. This is a key advanced strategy in Dots and Boxes.

Dots and Boxes is PSPACE-complete, which means it's computationally difficult to solve for large board sizes. While small boards (up to 4x4) can be solved completely with brute force, larger boards require sophisticated algorithms and heuristics. This complexity makes it an interesting subject for AI research and computational game theory.