Dots & Boxes - draw lines and claim boxes
Dots and Boxes has players alternate drawing one line at a time between adjacent dots on a grid. Complete the fourth side of any box and you claim it, earning a point. All it needs is paper and a pen, which is exactly why it's been a beloved pencil game for generations. The rules could not be simpler, but underneath, this is really a deep strategy game about one question: when do you take a box, and when do you deliberately give one away? Beginners grab every box in sight and collapse late in the game; strong players do the opposite, sacrificing boxes on purpose to control the entire board.
If a box already has two sides drawn, adding a third one hands your opponent a free box. They just draw the fourth side and claim it. So the core skill in Dots and Boxes is making safe moves, ones that never create a three-sided box, for as long as humanly possible. Eventually those safe moves run out completely, and someone is forced to give a box away, and exactly when that moment arrives is what actually decides the game.
As the game moves into its later stages, boxes link together into long chains. Open one box in a chain, and your opponent can run straight down the entire thing, claiming every box in a row. That's why "how many points am I scoring right now" matters far less than "who gets forced to open this chain." The basic approach is to give away short chains first, saving the long ones for your opponent to be the one who has to crack open.
This is the single move that separates strong players from beginners. When you're running down a long chain your opponent opened, don't take every box. Deliberately leave the last two for them instead. Your opponent picks up those two boxes, but in exchange, they're now forced to be the one who opens the next chain. You're trading two boxes for the ability to keep handing that unfavorable "must open next" turn right back to your opponent. Master this one technique and your level jumps noticeably.
Dots and Boxes ultimately comes down to one question: once the safe moves run out, who has to open a chain first? This is called parity. The exact math behind it gets complicated fast, but in practice, you can play strongly just by making your opponent open long chains whenever possible and using the double-cross to keep passing that unfavorable turn back to them.
Omokboard's Dots and Boxes is played on a 6×6 grid of dots. That makes 25 boxes and 60 lines in total. With an odd number of boxes, a tie is impossible, and whoever claims 13 boxes has won no matter how the rest of the board goes. In AI games you play Red and move first, and the AI plays Blue.
In the endgame, the Hard AI splits the remaining boxes into chains and loops and runs exactly the calculation this guide describes. It considers every order in which the chains and loops could be opened to find the one that costs it least, and it opens a 2-box chain with the middle line so you can't double-cross it. When it's taking a chain you opened, it calculates whether to take everything or hand back the last 2 boxes (4 for a loop) to keep control, and double-crosses when that's better. In AI-vs-AI games, Hard double-crosses more than once per game on average and beats the old Hard AI, which didn't have this calculation, about 87% of the time.
It has limits. If the board includes boxes with three or four open sides (junctions), it skips the chain calculation and falls back to its usual scoring. And during the middlegame, while safe moves remain, it doesn't plan ahead for who will have to open first in the endgame, so it's weak against the advanced play of steering the number of chains on purpose. Adjusting the chain count in the middlegame so the AI is forced to open first is the way to beat Hard.
Just starting out? Focus purely on never creating a three-sided box. Avoid touching boxes that already have two sides, and fill in edges around zero- or one-sided boxes safely instead. That alone is enough for now.
Getting comfortable? Practice recognizing chain lengths at a glance. When you're eventually forced to give a chain away, make it a habit to always give up the shortest one first.
Want to go further? Start applying the double-cross in real games. Once leaving the last two boxes of a long chain feels natural instead of wasteful, you'll find yourself holding the initiative for the entire board, turn after turn.
We had Omokboard's AI levels play each other (measured October 18, 2026, alternating who moves first). Each figure is the win rate of the first level against the second, with draws counted as half a win.
| Matchup | Win rate | Games |
|---|---|---|
| Hard vs Normal | 100% | 1,000 |
| Normal vs Easy | 99.8% | 1,000 |
| Hard vs Easy | 100% | 1,000 |
Dots and Boxes cannot end in a draw. Over 1,000 games Hard never lost to Normal or Easy, because it counts the endgame chains and plays the double-cross, deliberately leaving two boxes at the end of a long chain.
For other games and the full method, see AI Difficulty Benchmarks.