← Back to Guides

Dots & Boxes Guide

Draw lines, claim boxes, and plan extra turns

Dots and Boxes: A Deep Mind Game Hiding Behind a Sheet of Paper

Dots and Boxes has players alternate drawing one line at a time between adjacent dots on a grid. Complete the fourth side of any box and you claim it, earning a point. All it needs is paper and a pen, which is exactly why it's been a beloved pencil game for generations. The rules could not be simpler, but underneath, this is really a deep strategy game about one question: when do you take a box, and when do you deliberately give one away? Beginners grab every box in sight and collapse late in the game; strong players do the opposite, sacrificing boxes on purpose to control the entire board.

Play Dots and Boxes now →

Objective & Rules

  • Move: On your turn, draw one empty edge between two adjacent dots.
  • Score: Drawing a box's fourth side claims it for 1 point.
  • Extra turn: Completing a box lets you go again: chains of boxes keep your turn alive.
  • Win: When all boxes are claimed, the player with more boxes wins.

The Golden Rule: Never Draw the Third Side Yourself

If a box already has two sides drawn, adding a third one hands your opponent a free box. They just draw the fourth side and claim it. So the core skill in Dots and Boxes is making safe moves, ones that never create a three-sided box, for as long as humanly possible. Eventually those safe moves run out completely, and someone is forced to give a box away, and exactly when that moment arrives is what actually decides the game.

Understanding Chains

As the game moves into its later stages, boxes link together into long chains. Open one box in a chain, and your opponent can run straight down the entire thing, claiming every box in a row. That's why "how many points am I scoring right now" matters far less than "who gets forced to open this chain." The basic approach is to give away short chains first, saving the long ones for your opponent to be the one who has to crack open.

The Double-Cross: Sacrificing Two Boxes to Take Back Control

This is the single move that separates strong players from beginners. When you're running down a long chain your opponent opened, don't take every box. Deliberately leave the last two for them instead. Your opponent picks up those two boxes, but in exchange, they're now forced to be the one who opens the next chain. You're trading two boxes for the ability to keep handing that unfavorable "must open next" turn right back to your opponent. Master this one technique and your level jumps noticeably.

Parity: Who Gets Forced to Open First

Dots and Boxes ultimately comes down to one question: once the safe moves run out, who has to open a chain first? This is called parity. The exact math behind it gets complicated fast, but in practice, you can play strongly just by making your opponent open long chains whenever possible and using the double-cross to keep passing that unfavorable turn back to them.

Omokboard's Dots and Boxes Board and AI

Omokboard's Dots and Boxes is played on a 6×6 grid of dots. That makes 25 boxes and 60 lines in total. With an odd number of boxes, a tie is impossible, and whoever claims 13 boxes has won no matter how the rest of the board goes. In AI games you play Red and move first, and the AI plays Blue.

  • Easy picks one of the open lines completely at random. It happily draws third sides for you.
  • Normal scores each line. Completing a box adds a lot, while drawing a third side or leaving a box you could take right away subtracts. It then picks at random from the top four.
  • Hard uses the same scoring as Normal while safe moves remain, but weighs the penalties 1.4 times as heavily and always plays its top move. Once safe moves run out and the endgame begins, it switches to a completely different calculation.

In the endgame, the Hard AI splits the remaining boxes into chains and loops and runs exactly the calculation this guide describes. It considers every order in which the chains and loops could be opened to find the one that costs it least, and it opens a 2-box chain with the middle line so you can't double-cross it. When it's taking a chain you opened, it calculates whether to take everything or hand back the last 2 boxes (4 for a loop) to keep control, and double-crosses when that's better. In AI-vs-AI games, Hard double-crosses more than once per game on average and beats the old Hard AI, which didn't have this calculation, about 87% of the time.

It has limits. If the board includes boxes with three or four open sides (junctions), it skips the chain calculation and falls back to its usual scoring. And during the middlegame, while safe moves remain, it doesn't plan ahead for who will have to open first in the endgame, so it's weak against the advanced play of steering the number of chains on purpose. Adjusting the chain count in the middlegame so the AI is forced to open first is the way to beat Hard.

Common Mistakes

  • Grabbing one box in front of you, but in doing so, creating a third side that hands over a much bigger chain.
  • Taking an entire chain all the way to the end, only to be forced to open the very next one yourself. It's a classic case of forgetting the double-cross.
  • Giving away a box while safe moves are still available on the board.

Strategy by Skill Level

Just starting out? Focus purely on never creating a three-sided box. Avoid touching boxes that already have two sides, and fill in edges around zero- or one-sided boxes safely instead. That alone is enough for now.

Getting comfortable? Practice recognizing chain lengths at a glance. When you're eventually forced to give a chain away, make it a habit to always give up the shortest one first.

Want to go further? Start applying the double-cross in real games. Once leaving the last two boxes of a long chain feels natural instead of wasteful, you'll find yourself holding the initiative for the entire board, turn after turn.

FAQ

  • Does completing a box always earn another turn? Yes, and chaining several completions in a row just keeps extending your turn.
  • Do I have to take an available box? No. Declining one, as in the double-cross, is often the better move.
  • Can the game end in a tie? Not on Omokboard. The board has 25 boxes, an odd number, so a tie can't happen. Ties are only possible on boards with an even number of boxes.
  • If there are several chains, what order should I give them away in? As a rule, shortest first. Give up short chains early and hold onto the long ones as long as possible, so your opponent ends up being the one forced to open them.