Dots & Boxes

2 Players
Player 1
0
Your turn
Player 2
0
Your turn
AI is thinking...
Player 1 Wins!
Claimed the most boxes
Player 1
0
Player 2
0

Play Dots and Boxes Online for Free

Dots and Boxes is a classic pen-and-paper game for two players. A grid of dots is laid out, and players take turns joining two neighbouring dots with a line. Whenever a line completes the fourth side of a box, that player claims the box and plays again. When all the boxes are taken, the player with the most boxes wins.

This free version lets you play against the computer on three difficulty levels or against a friend on the same device, with four grid sizes. It runs in your browser with no download or sign-up, on desktop, tablet and phone.

Dots and Boxes Rules

  1. Take turns drawing lines. On your turn, draw one horizontal or vertical line between two neighbouring dots. Lines cannot be diagonal and cannot be drawn twice.
  2. Complete a box, score a point. If your line is the fourth side of a box, you claim that box and it is marked with your initial.
  3. Complete a box, play again. After claiming a box, you must take another turn. A single line can complete two boxes at once, which scores two points.
  4. The game ends when every box is claimed. The player with more boxes wins. If both have the same number, it is a draw.

With an odd number of boxes, such as the 5×5 grid, there can be no draw.

How to Play Here

  1. Choose a mode. Pick 2 Players or vs Computer. Against the computer, choose Easy, Medium or Hard.
  2. Choose a grid size. The sizes are 2×2, 4×4, 5×5 and 6×6 boxes. Press Start Game and enter your name.
  3. Draw a line. Click or tap the gap between two dots. On a computer, the line you are about to draw is highlighted as you move the mouse. On a touch screen, slide your finger to preview a line.
  4. Watch the scoreboard. It shows each player's boxes and whose turn it is. You play first and the computer is Player 2.

Undo takes back your last move, and against the computer it takes back both your move and the computer's reply. The restart and Resign buttons both start a new game, and the home button returns to the menu.

Grid Sizes

Grid sizes, boxes, dots and which player wants an odd or even number of long chains
Grid (boxes)BoxesDotsFirst player wantsSecond player wants
2 × 249An odd number of long chainsAn even number
4 × 41625An odd number of long chainsAn even number
5 × 52536An even number of long chainsAn odd number
6 × 63649An odd number of long chainsAn even number

This comes from the long chain rule, explained below. A long chain is a run of three or more boxes.

Playing Against the Computer

How each computer difficulty chooses its moves
LevelHow it plays
EasyDraws random lines
MediumCompletes a box whenever it can, otherwise avoids drawing a third side, otherwise picks at random
HardPlays like Medium, and when every move gives something away it picks the one that gives away the fewest boxes

The computer takes any box on offer and avoids giving boxes early, but it does not plan around chains. Learning to control the long chains is the best way to beat it.

Dots and Boxes Strategy and Tips

Avoid drawing the third side of a box

A box with three sides drawn can be completed by your opponent with one line. In the early game, only draw lines that do not create a third side. These are called safe moves.

Take free boxes, but think first

If your opponent leaves a box open, you can take it. Near the end of the game, taking every box is sometimes a mistake, because it can force you to open a long chain for them. Check what you will have to play next.

Learn to see chains

A chain is a row of boxes joined end to end. When one player opens a chain, the other can take all of its boxes. Short chains of one or two boxes matter less. Long chains of three or more decide the game.

Use the long chain rule

The rule says to try to make the number of dots plus the number of long chains even if you play first, and odd if you play second. The table above has this worked out for each grid size. The player who gets the number they want ends up controlling the chains and usually wins.

Use the double-cross to keep control

When you are forced to open a chain, take all but the last two boxes and give those two away with a single line. Your opponent takes them, then has to open the next chain for you. You give up two boxes but gain the rest.

Cut chains early

If the number of long chains is going the wrong way for you, break a long chain into two short ones, or join short ones into a long one, while there is still room to do it.

Dots and Boxes FAQ

Is Dots and Boxes free to play here?

Yes. There is nothing to download and no account to create.

Do I get another turn after completing a box?

Yes. Completing a box scores a point and you must play again.

Can one line complete two boxes?

Yes. A line between two boxes that both have three sides completes both at once, and scores two points.

Can the game end in a draw?

Yes on grids with an even number of boxes, if both players claim the same number. On the 5×5 grid there are 25 boxes, so a draw is impossible.

Who goes first?

Player 1 goes first. Against the computer, you are Player 1.

Can I play Dots and Boxes with a friend?

Yes. Choose 2 Players and take turns on the same device. There is no online matchmaking.

What is a double-cross?

It is a sacrifice at the end of a long chain: you leave the last two boxes for your opponent so that they have to open the next chain.

Does it work on a phone?

Yes. Tap between two dots to draw a line. The board resizes to fit your screen.

More Board and Strategy Games

If you like claiming territory, try Pentago, Hex, Isolation, Ataxx, Connect Four or Tic Tac Toe. All of them play free in your browser.

Browse all Venjex games