Tidepost logoTidepost

How to Play Dots and Boxes

This guide shows how to play dots and boxes: the rules take a minute to learn, and the strategy is where the game gets deep. Every example below comes from a real Tidepost board, so you can open the same position and try it yourself.

Play Tidepost freeOpens the game on the home page. No download, no sign-up.

The rules in one minute

The game starts with a grid of dots. Players take turns drawing a single line between two neighbouring dots. Draw the fourth side of a box and that box is yours, and you draw again. When every line is drawn, the player with more boxes wins.

In Tidepost the dots are wooden posts, the lines are ropes and a closed box becomes a striped umbrella in your colour. Tap near a gap or drag from post to post. Boards run from 3×3 to 6×6 boxes, plus a 7×7 board on wide screens. A 3×3 board has 16 posts, 9 boxes and 24 ropes to draw.

Two details matter more than they look. Drawing a box's third side hands that box to your opponent. And taking a box you are offered is never compulsory, a fact the double-cross below is built on.

How to play dots and boxes: the opening

Early on nobody can score, so the aim is simple: never draw a third side while another line is available. A line that gives nothing away is a safe line.

Safe lines are not all equal. Campaign level 23 is a 3×3 board with 13 ropes left and nothing scored. Solving it exactly shows that only three lines are safe, and that two of them reach the target of finishing five boxes ahead while the third finishes three boxes behind. The hint on the screenshot marks one of the good ones.

Tidepost campaign level 23 on a 3x3 board with a glowing hint rope and the crab saying it is a safe line, no third side given
Level 23: three safe ropes, only two of them win.

Each safe line uses up a move both players could make for free. When none are left, whoever has to move must give something away, and counting who that will be is the heart of the game.

What happens when the safe lines run out

The board has by now split into chains and loops. A chain is a row of boxes joined end to end, each with two sides drawn, so one rope opens the whole row for your opponent. A loop is a ring of boxes with no end. A chain of one or two boxes is short; three or more is long.

When you must open something, open the shortest chain first. Level 15 shows why. It is a 3×3 board where you lead 2–0 and only two groups remain, a two-box chain and a five-box chain:

A marks the two boxes you already own. The two empty boxes in the left column are the two-box chain; the other five form the five-box chain.

The solver rates every rope. Drawing the middle rope of the two-box chain finishes 7–2. Drawing either end of it, or any rope in the five-box chain, finishes 4–5. The middle rope wins because it leaves two separate boxes that cannot be handed back: your opponent takes both and must then open the five-chain for you. An end rope would let them decline and keep control.

The long-chain rule

Whoever must open the first long chain usually loses the game, so the real fight is over parity. The classic rule: count the dots (posts) on the board, then add the number of long chains you expect. The first player wants that total to be even, the second player wants it odd. Loops and chains of one or two boxes are not counted.

A 5×5-box board has 36 dots, so the player who moves first wants an even number of long chains and the player who moves second wants an odd number. A 4×4 board has 25 dots, which flips it. It is a guide, not a guarantee: a loop or a late sacrifice can change the count. Campaign levels 23 to 30 train it.

The double-cross: a worked example

Level 31 starts with two four-box chains on a 3×3 board. Clack has one umbrella, and the first chain has already been opened for you. The target is to win by at least 3.

Tidepost campaign level 31 start: a 3x3 board with one red umbrella, win by at least 3, and the tip about taking all but the last two boxes
Level 31 at the start: score 0–1, you to move.

Take the first two boxes, which makes it 2–1. Two boxes remain in that chain. Greedy play takes them as well, reaching 4–1, but then you must open the second chain and Clack takes all four: you lose 4–5.

Tidepost level 31 after two boxes are taken, with a glowing rope at the far end of the last two boxes and the hint to decline them
The hint: decline the last two boxes.

Instead, draw the rope at the far end of those last two boxes. Both boxes are now ready to be taken with one rope, and you have given them away on purpose.

Tidepost level 31 after Clack took two boxes with one rope, score 2 to 3, with the second four-box chain still untouched
Clack takes both boxes with one rope: 2–3.

Clack scores two, but has nothing safe left and must open the second chain. You take all four and win 6–3. Strategy writers call your decline the double-dealing move and Clack's two-box capture the double-cross, though most players use one word for the whole idea. It costs you two boxes, so it only pays when the chain left behind is worth more, and never on the last chain of the game.

Loops: open them early

A loop costs more to decline than a chain: four boxes against two. That makes loops the cheapest thing to open first when you are the one giving boxes away.

Level 40 is a 4×4 board with a four-box loop and a four-box chain left, you to move at 5–3. Opening the loop first finishes 9–7 and meets the target. Opening the chain first finishes 7–9. The hint reads "Cheapest gift: 4 boxes."

Tidepost level 40, a 4x4 board with a two-by-two loop at the left and a four-box chain along the bottom, the hint rope inside the loop
Level 40: the glowing rope opens the loop.

Practise each idea

The 50-level campaign follows this guide in order: free boxes (levels 1–6), the third side (7–14), short before long (15–22), the long-chain rule (23–30), the double-cross (31–38), loops (39–46) and four Harbour master levels (47–50). All are open from the start. The daily puzzle adds three new endgames every day.

Dots and boxes questions

How do you win at dots and boxes?

Finish with more boxes than your opponent. Avoid drawing a third side while safe lines remain, then use the long-chain rule and the double-cross to decide who is forced to open the long chains.

Do you move again after completing a box?

Yes. Completing a box scores it and you draw another line straight away. You may decline a box that is offered, which is how the double-cross works.

Can dots and boxes end in a tie?

Only on boards with an even number of boxes. The 3x3 and 5x5 boards (9 and 25 boxes) always have a winner, while 4x4 and 6x6 can finish level.

How do you play dots and boxes against the computer?

Open the game, choose a board size, pick Easy, Medium or Hard and decide who goes first. Easy sometimes gives boxes away, while Hard plays the endgame exactly and knows the double-cross.

When should I decline the last two boxes of a chain?

When another chain is waiting afterwards, so keeping control is worth more than the two boxes you give up. Never on the last chain of the board.

Play Tidepost freeTry the ideas on a real board, or start the 50-level campaign.