Dots and boxes

Dots and boxes online — 2 player

Join the dots, close a box, go again. Play a friend on one screen or take on the computer — 3×3, 4×4, 5×5 boards, made for touch.

Dots and boxes

Blueboxes0
vs
Redboxes0

Blue starts

Tap or press near a line between two dots — the nearest free line lights up; slide to adjust and lift to draw it. Complete a box to claim it and move again.

How to play dots and boxes

  1. Take turns drawing lines. Players take turns joining two neighbouring dots with a horizontal or vertical line. On a phone, press near the line you want — the closest free line lights up — and lift your finger to draw it.
  2. Close a box to claim it. Whoever draws the fourth side of a box wins that box (it is filled with their colour) and must draw another line straight away.
  3. Keep going until the grid is full. One line can sometimes close two boxes at once. The game ends when every line is drawn.
  4. Most boxes wins. The player with more boxes wins. Boards with an odd number of boxes (3×3 and 5×5) can never end in a draw.

On a touch screen you never have to hit a thin line exactly: the whole area around a line counts, the line you are about to draw is shown in your colour, and you can slide your finger before lifting it. With a mouse, hover to preview and click to draw.

Strategy 1: never draw the third side

The dashed line would be the 3rd side of the left box — your opponent closes it next

A box with three sides is a free gift: the next player closes it and moves again. In the opening and middle game, only draw lines that leave every box with at most two sides. Our Normal computer follows this rule strictly — it never hands over a box while a safe line still exists.

Strategy 2: count the chains

A chain of 3: open one end and all 3 boxes fall
A loop of 4: no ends, every line inside opens it

Sooner or later the safe lines run out and the board breaks into chains (rows of boxes with two open sides, ending at the edge) and loops (chains that close on themselves). Drawing any line inside a chain lets your opponent take the whole chain.

  • Give away the smallest thing first. When every line costs you boxes, open a single box or a 2-chain before you open a long chain.
  • Open a 2-chain in the middle. Drawing the line between the two boxes leaves two separate boxes, so your opponent can’t use the double-cross trick on them.
  • Long chains decide the game. Chains of three or more boxes are where most points are scored. The player who is forced to open the first long chain usually loses — so in the middle game, try to steer the number of long chains in your favour.

Strategy 3: the double-cross (all but two)

Take the first box, then draw the far end: the last 2 boxes go to one line (dashed)
Opening a 2-chain in the middle (dashed) leaves no double-cross

When your opponent opens a long chain, you don’t have to eat all of it. Take every box except the last two, then draw the line at the far end instead. Your opponent gets those two boxes with a single line — a double-cross — but then has to move again, which means opening the next chain for you. Losing 2 boxes to win the next 3, 4 or 5 is the key trade of the whole game.

Keep this “control” to the end: each time you double-cross you give away two boxes, so it only pays while the chains you will win are longer. In the very last chain, take everything.

Board sizes and the computer

Every board below is playable here. The computer columns come from 200 test games per size between our Normal computer and two weaker players, alternating who moves first: our Easy level, and a “greedy” player that always takes a free box and never draws a third side but knows nothing about chains.

BoardDotsLinesBoxesNormal vs Easy (wins)Normal vs greedy (wins)
3×316249183 / 200184 / 200
4×4254016191 / 200183 / 200
5×5366025194 / 200199 / 200

The gap against the greedy player shows how much chain play is worth: avoiding third sides is not enough on its own. If you can beat Normal on 4×4, you are playing real dots and boxes strategy.

More two-player games

Looking for another game to play with a friend on one device? Try gomoku (five in a row) or the three-lane duel Block Battle. For solo thinking games, play peg solitaire or the box pushing puzzle. Chinese speakers can use the 点格棋 page, which shares the same saved game.

FAQ

How do you play dots and boxes with 2 players on one device?

Choose “2 players” and pass the phone, tablet or laptop back and forth. The coloured name at the top shows whose turn it is; when someone closes a box they keep the turn. Undo takes back the last line if somebody slips.

Can I play dots and boxes against the computer?

Yes. Choose “vs CPU” and pick Easy or Normal. Easy grabs any box it can but often hands boxes back. Normal never gives away a box while a safe line is left, counts chains in the endgame and uses the double-cross to keep control — it is a real challenge.

What is the most important dots and boxes strategy?

Don’t draw the third side of a box unless you have to — that hands the box to your opponent. Later in the game, think in chains: when every line gives something away, give away the shortest chain, and when you take a long chain, consider leaving the last two boxes (the double-cross) so your opponent has to open the next chain.

What is a double-cross in dots and boxes?

When you are taking a chain, you can stop two boxes short and draw the line at the far end instead. Your opponent gets both boxes with one line — a “double-cross” — but then has to move again and open the next chain for you. Giving up 2 boxes to win a longer chain is often the winning trade.

Which board size should I pick?

3×3 games take a couple of minutes and are good for learning; 5×5 has 60 lines and leaves much more room for chain tactics. Every size works with touch, mouse and against the computer.

Is my game saved?

Yes. The board, mode and level are saved in this browser, so you can reload the page and carry on. Nothing is uploaded and there is no sign-up.