← Back to Blog

Most people first encounter Dots and Boxes as children, drawing lines on graph paper during a boring class. Two players take turns drawing a horizontal or vertical line between adjacent dots. Complete the fourth side of a box and you claim it, writing your initial inside it and going again. When every box is claimed, the player with the most wins. Simple, right?

It is not simple. Dots and Boxes is one of the most deeply strategic two-player games that exists, and the key to understanding it is a concept called chains.

What is a chain?

A chain is a connected sequence of boxes where each box has exactly two sides remaining. Think of it as a corridor: once someone draws a line at one end of the chain, the other player can complete that box and then the next one, and the next one, all the way to the end of the chain, because each box in the sequence needs only one more line after the previous one is completed.

This is the central tension of Dots and Boxes: if you are forced to open a chain (draw a line that gives your opponent the first box in the sequence), your opponent gets every box in the chain for free. Long chains are devastating — giving away a chain of six boxes is usually game-losing.

The chain-counting principle

Here is the rule that strong Dots and Boxes players live by: the player who controls the parity of long chains wins the game. Specifically, if there is an odd number of long chains (chains of three or more boxes), the player who moves first in the endgame is in trouble. If there is an even number, they are in control.

Why? Because chains alternate. If I am forced to open a chain, you take the whole thing. Then you open the next chain for me. If there are three long chains, the sequence goes: I open chain 1 (you take it), you open chain 2 (I take it), I open chain 3 (you take it). With three chains, you get two and I get one. With four chains, it is two each. The parity determines who comes out ahead.

The double-cross

The double-cross (also called the double-dealing move) is the technique that turns chain control into box control. When your opponent opens a chain, instead of taking every box in it greedily, you take all but the last two. Then you deliberately complete the third side of the second-to-last box without completing it — in effect, you sacrifice two boxes to give your opponent the move.

Why would you sacrifice two boxes? Because by passing the move back to your opponent, you force them to open the next chain. You take the two sacrificed boxes later, and you get the entire next chain. The sacrifice of two boxes in a short chain often buys you a chain of five, six, or more boxes — a huge net gain.

The double-cross is the move that separates beginners from experienced players. A beginner greedily takes every box offered and then finds themselves forced to open the big chain. An experienced player sacrifices two boxes now to win ten later.

The opening and midgame

If the endgame is about chains, the opening and midgame are about creating (or avoiding) the conditions for chains. The goal is to draw lines that do not create boxes with only one side remaining (which would let your opponent complete the box and go again) while manoeuvring the opponent into positions where they are forced to create short chains or open long ones.

The central strategic principle in the opening is simple: avoid drawing the third side of any box. A box with three sides is a gift to the other player. As the game progresses and the board fills up, this becomes harder and harder, until eventually someone is forced to make a move that opens a chain. That player is usually the one who loses.

Why the AI is hard to beat

The Dots and Boxes AI on PlayVersusAI understands chain theory. On Hard difficulty, it counts chains, tracks parity, and executes double-crosses. It will not greedily take every box — it will sacrifice short-chain boxes to maintain chain control and force you to open the big chains. If you play without understanding chains, it will beat you every time. If you play with chain awareness, you will find the games remarkably close.

Try it yourself: play a game of Dots and Boxes on Hard difficulty and watch what the AI does when it has the option to take a full chain versus leaving the last two boxes. That move is the double-cross, and understanding it is the single biggest improvement you can make to your game.

← All Posts Play Dots and Boxes →