Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Dots and boxes

Take turns joining dots; close the fourth side of a box to claim it and move again. Most boxes wins. Play the computer (3 levels) or a friend.

How to play

  1. Players take turns drawing one line between two dots that are next to each other, across or down.
  2. If your line closes the fourth side of a box, the box is yours (marked with your letter and colour) and you must draw another line.
  3. When every box is taken, the player with more boxes wins.
  4. Tap between two dots to draw a line there.

Keyboard and touch

Arrow keysMove between boxes (the highlighted box)
W A S DDraw the top, left, bottom or right side of that box
Shift + arrowDraw the side in that direction
Tap between two dotsDraw that line

Tips

  • Avoid drawing the third side of a box: your opponent closes it and moves again.
  • Late in the game every move gives something away. Give away the shortest chain of boxes first.
  • The double-cross: when you are taking a long chain, you can leave the last two boxes by drawing the far end instead. Your opponent takes those two, but then must open the next chain for you. Keeping this "control" usually wins.
  • When you must hand over two boxes, draw the line between them, not at an end: then your opponent cannot double-cross you.
  • The hard computer uses these ideas. Hint suggests the move the hard computer would make.

About this game

Dots and boxes is a pencil-and-paper game first described by the French mathematician Édouard Lucas in 1889. Elwyn Berlekamp later showed how deep its endgame is: it hinges on long chains and on who has to open them. The computer here plays by rules of thumb from that theory. Easy takes free boxes and otherwise plays mostly at random; normal never hands over a box when it can avoid it and then gives the smallest chain; hard also uses the double-cross to keep control and, once 18 or fewer lines are left, plays perfectly by checking every possible order of the remaining lines. Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product