Dots and Boxes

About Dots and Boxes: Play Online Free vs the Computer

Yes. Whenever your line completes a box you take it and lay another line. Closing two boxes with one line counts as two boxes and still gives you just one more line.

By the ToolFluency team · Updated November 2026

Dots and Boxes is the pencil-and-paper game of joining dots and closing boxes, played here on a wooden peg board. Players take turns laying a line between two neighbouring pegs. Close the fourth side of a box and it is yours, and you lay another line. When every line is down, the player with more boxes wins. Play against the computer at three levels or a friend on the same device, on boards from 3 by 3 to 6 by 6 boxes. The printable rules and printable game sheets are here too.

How to play Dots and Boxes

  1. Choose vs Computer and a level (Easy, Normal or Hard), or 2 Players. Pick a board size; 5 x 5 is the default.
  2. Tap between two pegs to lay a line. A faint line shows where it will go before you lift your finger.
  3. If your line closes the fourth side of a box, the box is yours and you must lay another line.
  4. When every line has been laid, the player with more boxes wins. Even-sized boards can end in a tie.
  5. Undo takes back your last turn. Hint shows the line the Hard computer would lay.

Examples

Strategy tips
  • Never draw the third side of a box unless you have to: it gives the box away.
  • Late in the game every move gives something away. Count the chains (rows of boxes that fall one after another) before you open one.
  • Open the shortest chain first, so your opponent gets as little as possible.
  • When you take a long chain, you can leave the last two boxes for your opponent (a double-cross). They take two boxes, but then they have to open the next chain for you.
Example: keeping control
Three chains are left, of 3, 4 and 5 boxes, and your opponent has just opened the 3-chain. Take one box, then lay the line that leaves the last two for your opponent. They take 2, then must open the 4-chain or the 5-chain, and you take all of it. You give up 2 boxes to win 9.

Frequently asked questions

Do you get another turn after closing a box?

Yes. Whenever your line completes a box you take it and lay another line. Closing two boxes with one line counts as two boxes and still gives you just one more line.

What board sizes can I play?

3 x 3, 4 x 4, 5 x 5 and 6 x 6 boxes. Small boards are quick; 6 x 6 is a long, strategic game.

How strong is the computer?

Easy takes any box it can but otherwise plays loosely. Normal never gives a box away while a safe line exists. Hard plays the endgame exactly: it counts chains and loops and gives up the last two boxes of a chain when that keeps control. Your record is kept separately for each level on this device.

Can the game end in a tie?

Yes, on boards with an even number of boxes (4 x 4 has 16, 6 x 6 has 36). On 3 x 3 and 5 x 5 one player always wins.

Is it easy to tap the lines on a phone?

Yes. Each tap goes to the nearest open line, so there are no dead spots, even on a 6 x 6 board.

Part of ToolFluency’s library of free online tools for Games & Fun. No account needed, no data leaves your device.

Embed this tool on your site (free)
Paste this where you want the tool. Please keep the attribution link.
<iframe id="tf-dots-and-boxes" src="https://toolfluency.com/tools-v2/fun/dots-and-boxes.html?embed=1" width="100%" height="640" loading="lazy" style="border:1px solid #e2e2e2;border-radius:12px;max-width:760px" title="Dots and Boxes: Play Online Free vs the Computer by ToolFluency"></iframe>
<script>addEventListener("message",function(e){var f=document.getElementById("tf-dots-and-boxes");if(f&&e.source===f.contentWindow&&e.data&&e.data.tfEmbedHeight){f.height=e.data.tfEmbedHeight}});</script>
<p>Powered by <a href="https://toolfluency.com/tools-v2/fun/dots-and-boxes.html">Dots and Boxes: Play Online Free vs the Computer</a> — free tools by ToolFluency</p>