Dots and Boxes Online: Play Free vs Computer or 2 Players

Browser Games›Dots and Boxes

Draw lines between the dots, close boxes and finish with more boxes than the other side. Play against the computer on Easy, Medium or Hard, or switch to two players and share the screen with a friend. Choose a board of 3 by 3, 4 by 4 or 5 by 5 boxes.

How to play Dots and Boxes

  1. The board is a grid of dots. The two sides take turns drawing one line between two dots that are next to each other, across or down. Diagonal lines are not allowed.
  2. When you draw the fourth side of a box, the box is yours. It is shaded in your colour and marked with your initial.
  3. After closing a box you must draw again. You keep the turn as long as every line you draw closes a box.
  4. One line can close two boxes at once, when it is the last missing side of both.
  5. The game ends when every line has been drawn. The side with more boxes wins. On the 4 by 4 board the game can end in a draw, 8 to 8.

How to use this board

  • Tap or click between two dots to draw the line there. Each line reacts to a wide diamond-shaped area around it, so it is easy to hit on a phone.
  • You draw in blue and the computer in red. The card with the coloured outline shows whose turn it is.
  • On your turn a small amber dot marks every box that already has three sides.
  • Undo takes back your last line together with everything the computer drew after it. Hint lights up a good line in green.
  • With a keyboard, move from line to line with the arrow keys or Tab and draw with Enter or Space.

Board sizes and the three levels

  • 3×3: 9 boxes and 24 lines. A quick game with no draws, good for learning.
  • 4×4: 16 boxes and 40 lines. The standard size for a short, balanced game.
  • 5×5: 25 boxes and 60 lines. Long chains appear, and one mistake can cost ten boxes.
  • Easy: closes a box when one is ready and otherwise draws anywhere, so it hands out boxes early.
  • Medium: avoids the third side of a box while a safe line is left, and always takes every box it is offered.
  • Hard: counts chains and uses the double-cross to control the endgame. It thinks for about a third of a second per move.

Dots and Boxes strategy: chains and the double-cross

  • Do not draw the third side of a box while another line is available. A box with three sides belongs to whoever moves next.
  • In the middle of the game the board fills with chains: rows of boxes with two sides each. Whoever opens a chain gives all of it to the other side.
  • When you have to give boxes away, give the shortest chain first and keep the long ones for the end.
  • Open a chain of two boxes with the line in its middle. If you open it at one end, the other side can refuse it and turn the game around.
  • The double-cross: when you are given a chain of three or more boxes, take them all except the last two. Then draw the line at the far end of the chain and leave those two to the other side. They get two boxes, but they have to move next and must open the next long chain for you.
  • Use the double-cross only while long chains remain. On the very last chain, take everything.
  • Count before you give anything away. With two chains of five on the board, the side that receives the first one takes three boxes, hands back two with the double-cross and then gets all five of the second: eight boxes against two.

Rules used here

This is the classic pencil-and-paper game, also known as Boxes, Squares or Dots and Dashes. You are not forced to close a box that is ready, which is what makes the double-cross possible. Against the computer you are always blue. The side that draws first changes with every new game. Your record is kept separately for each level and board size, and the game in progress is saved in this browser.

Frequently asked questions

Do I get another turn after closing a box?

Yes. Every line that closes a box gives you one more line, and you must draw it. A long chain can be taken in a single turn.

Do I have to close a box that is ready?

No. You may draw any free line. Leaving the last two boxes of a chain on purpose is a well-known trick called the double-cross.

Can the game end in a draw?

Only on the 4 by 4 board, which has 16 boxes. The 3 by 3 and 5 by 5 boards have an odd number of boxes, so one side always wins.

Can I play with a friend?

Yes. Choose 2 players at the top. Blue and red take turns on the same phone, tablet or computer.

Is it free?

Yes. There is no sign-up and no download. The game is saved in this browser after every line, so you can come back to it later.

More games to play

All 80 browser games →

Handy free tools

More to play