Dots and Boxes

Draw lines to complete boxes - finish a box and you move again

You
Boxes: 0
AI
Boxes: 0
Your turn - draw a line
How to Play Move: 0

How to Play Dots and Boxes

Dots and Boxes is played on a 7x7 grid of dots forming 36 boxes. On your turn, click between two adjacent dots to draw a line. When your line completes the fourth side of a box, you claim it - the box fills with your color and you immediately move again. One clever line can chain into a long run of captures, so a single turn can swing the whole game. When all 36 boxes are claimed, the player with more boxes wins; an 18-18 split is a draw.

The early game feels harmless, but every line you draw shapes the chains that decide the endgame. On PlayVersusAI you face four AI levels - the hard AI counts chain lengths and the training AI plays the double-cross - or challenge a friend in real-time online multiplayer.

Strategy Tips

Read the full Dots and Boxes guide →

Playing Dots and Boxes on PlayVersusAI

Dots and Boxes on a 6x6 grid of boxes. Players take turns drawing a single line between two adjacent dots, and whoever draws the fourth side of a box claims it and immediately moves again. When every line is drawn, the player owning more boxes wins.

The game looks like a children's doodle and plays like a mathematical puzzle. Almost all of it is decided in the endgame, when the board has resolved into long chains of boxes and the only question is who is forced to open the first one. Our engine understands chain parity, which is why it can appear to be idly filling in edges and then take twelve boxes in a single turn.

What's on This Page

Easy takes any box it can see and opens chains carelessly. Medium avoids the obvious self-inflicted damage. Hard counts chains and manages parity. AI Training plays the double-cross sacrifice properly — deliberately declining the last two boxes of a chain to keep you on move — which is the technique that separates strong players from everyone else.

Mistakes That Lose Games

Dots and Boxes Questions

Why did the AI not take boxes that were clearly available?
That is the double-cross. By declining the last two boxes of a chain, it forces you to be the one who opens the next chain, which typically wins far more boxes than it just gave up. It is the standard winning technique in this game.
Do I really get another turn every time I complete a box?
Yes, and the turn continues as long as you keep completing boxes. Long chains are therefore claimed in a single sweep.
How big is the board?
Six boxes by six boxes, which is 49 dots and 84 possible lines. That is large enough for real chain play to develop without the endgame becoming unmanageable.

For the complete rules, the deeper strategy and the history of the game, read the full Dots and Boxes guide, or browse guides for all 20 games.