What Is Dots and Boxes?

Dots and Boxes is the pencil-and-paper classic: a grid of dots where two players take turns drawing single lines between adjacent dots. Complete the fourth side of a small square and you claim that box - and immediately move again. When every line is drawn, whoever owns more boxes wins.

Most people play it as children and assume it's a game of luck and doodling. It isn't. Dots and Boxes has been studied seriously by mathematicians (it fills a whole chapter of Berlekamp's combinatorial game theory work), and there is a moment in every game where one idea - the double-cross - separates players who win consistently from players who just take whatever boxes appear.

The Rules

  • Take turns drawing one line - horizontal or vertical - between two adjacent dots. Lines are never erased.
  • Complete a box, claim it - drawing the fourth side of a 1x1 square marks that box as yours.
  • Completing a box grants an extra turn - you must move again immediately. Chain several completions in a row and it's all one turn.
  • The game ends when every possible line is drawn. Most boxes wins; on an even-boxed grid a tie is possible.

The extra-turn rule is what gives the game its teeth: one careless line can hand your opponent a whole run of boxes in a single turn. Play the AI here, or draw against a friend in real time via the multiplayer lobby.

Strategy: Chains Decide Everything

Understand chains

By mid-game, the safe lines run out: every remaining move gives the opponent at least one box. At that point the board has organized itself into chains - strings of adjacent boxes that all fall in one run once the first is opened. Whoever is forced to draw the first line into a chain "opens" it, and the opponent can march down the whole chain, claiming box after box with the extra-turn rule.

The double-cross: sacrifice two to win them all

Here's the move that changes everything. When your opponent opens a chain for you, do not take every box. Take all but the last two, then - instead of completing them - draw the line that leaves both remaining boxes as a pair for your opponent. They get two boxes... and are then forced to move again, opening the next chain for you. You've spent two boxes to buy every box in the next chain. Repeat this at the end of each chain and your opponent is forced to feed you the whole endgame, chain after chain. This is the double-cross, and against anyone who doesn't know it, it is devastating.

Count chains and play the parity

Because the player forced to open the first long chain usually loses control, the winner is often decided by how many long chains exist. The rule of thumb on our square boards: the first player wants the number of long chains (three boxes or more) to be even, and the second player wants it odd. During the neutral phase - while safe moves still exist - don't just avoid giving away boxes; actively merge or split regions to steer the chain count toward your parity. That's what strong players are doing while the board still looks harmless.

Open the cheapest chain first

When you are the one forced to give something away, give away the smallest thing on the board: a lone box or a two-box chain before a long one, and short chains before loops (closed rings of boxes, which cost a four-box sacrifice to control). Every box you avoid donating matters in a game decided by one or two.

Common Mistakes to Avoid

  • Drawing the third side of a box carelessly. Any line that creates a three-sided box is a gift. Before every move, check whether it leaves a box one line from completion.
  • Taking every box in a chain. Greedily finishing a chain forces you to open the next one. Leave the last two boxes (the double-cross) whenever another chain remains.
  • Opening the longest chain first. When forced to concede, sacrifice the smallest chain available. Handing over a long chain early loses games that were still winnable.
  • Ignoring parity in the neutral phase. If you only avoid three-siding boxes and never think about how many long chains are forming, control of the endgame is decided by luck instead of by you.
  • Forgetting that loops are different. Keeping control at the end of a loop costs four boxes, not two. Factor that into whether control is still worth it.

Playing Against Our AI

The PlayVersusAI engine knows the chain endgame, so easy wins from careless openings dry up quickly as you climb the difficulties:

DifficultyWhat to expect
EasyAvoids obvious giveaways sometimes, but greedily takes every box - double-cross it freely.
MediumNever three-sides a box without reason and takes chains cleanly.
HardUses the double-cross against you and sacrifices short chains to keep control.
AI TrainingPlays the parity battle in the neutral phase - you'll have to out-count it.

Frequently Asked Questions

Do I have to take a box if I complete one?
Completing the fourth side of a box always claims it and always grants the extra move - that part is automatic. What's optional is choosing to complete an available box at all: you're allowed to draw a different line instead, which is exactly what the double-cross sacrifice does.
What is the double-cross in one sentence?
When eating a chain your opponent opened, stop two boxes early and close them off as a pair for your opponent - they gain two boxes but are forced to open the next chain for you, so you keep control for the rest of the game.
Why does the number of long chains matter?
Because whoever must open the first long chain generally loses the endgame to double-crossing. Chain parity determines who that unlucky player is: as a rule of thumb, the first player wins control when the count of long chains is even, the second player when it's odd. Steering that count is the real battle of the early game.
Can Dots and Boxes end in a tie?
Yes, whenever the grid holds an even number of boxes and the players split them exactly. On boards with an odd number of boxes a tie is impossible - someone always ends up with the majority.
Play Dots and Boxes Now

Free to play - no account needed