Board & Cards2-5 min
Dots and Boxes
Draw the fourth side of a box and the box is yours
How to play
- 1Pick your opponent (Computer or 2 players), the board (3×3, 4×4 or 5×5 boxes), the level and who draws first, then press Start.
- 2Tap between two neighbouring dots to draw a line. Your lines stay in your colour.
- 3When your line closes all four sides of a box, your mark goes into it, the turn does not pass, and you draw again. One line can close two boxes at once.
- 4If your line closes nothing, the turn passes. When every box is claimed, whoever holds more wins. A board with an even number of boxes, like 4×4, can also end in a draw.
- 5While a closed box keeps your turn alive, a line under the board says you draw again. The last line drawn is shown thicker.
- 6Drew the wrong one? Press undo. Once a game, it takes back your whole turn, including the extra lines you drew after closing a box.
- 7When the board ends it tells you which of your lines gave away the most, and how many boxes went over at that moment. Your record is kept separately per board size.
Controls
- Click / tap
- Draw a line between two dots
- Arrow keys
- Reach the board with a tap or Tab, then move to the nearest line
- Enter / space bar
- Draw the line you are on
- Settings button
- Change opponent, board size, level and who goes first
- Undo button / Z, Backspace
- Once a game, take your turn back
Tips
- Drawing a third side on a box that already has two hands it straight to your opponent. Early on, avoid those lines and look for one that gives no box a third side.
- As the grid fills, boxes link up into chains. Open a chain and your opponent takes the whole thing, so when you must give something away, open the shortest chain you have.
- When your opponent opens a long chain for you, take all but the last two boxes and then draw the line across the end: they get those two and then have to open the next chain. Trading two boxes for a whole chain is the move that separates a strong player from a beginner.
- Closing a box means you must draw again. If, after eating a chain, the only line left to you opens another chain, the two-box sacrifice above may be the better deal.
- 3×3 is quick and good for learning the rules; 5×5 has longer and more numerous chains, so the endgame count decides it. If hard is beating you, practise counting chains on 4×4.
What is Dots and Boxes?
Two players take turns drawing one line at a time between the dots of a grid. When your line closes the fourth side of a box, that box is yours and you draw again. Whoever holds more boxes when the grid is full wins. Plenty of people remember it from the corner of a school notebook.
It is usually credited to Edouard Lucas, the 19th-century French mathematician. Early on it feels like any line will do, and then the grid fills up and you reach the point where every line you could draw hands your opponent a box. How many boxes you hand over at that moment - and whether you deliberately leave two behind to make your opponent open the next run - is where the game actually lives.
The computer has three levels. Normal picks lines that give nothing away for as long as it can, and when it has to give something up it looks for the line that gives up least. Hard solves the endgame by counting once the grid has hardened into chains: it counts the lengths of the remaining chains and loops and decides whether to take a chain whole or deliberately leave the last two, whichever loses less. That is what puts a clear gap between hard and normal.
Frequently asked questions
I closed a box - why is it still my turn?
That is the rule of Dots and Boxes. Whoever draws the last side of a box takes the box and must draw again. Close another box and you keep going; the turn only passes when you draw a line that closes nothing.
How do the levels differ?
Easy misses boxes it could close and often draws lines that hand boxes over. Normal never misses a box, picks lines that give nothing away for as long as it can, and when it must give something up chooses the line that gives up least. Hard adds the endgame count: it counts the remaining chains and loops and works out which chain to open and whether to eat a chain whole or leave the last two. Set to play 20 games automatically, hard beat easy 20-0 on all three board sizes, and beat normal on 4×4 with 15 wins, 3 draws and 2 losses.
Can a game end in a draw?
On the 4×4 board, which has an even 16 boxes, it can finish 8-8. The 3×3 (9 boxes) and the 5×5 (25) have an odd number, so somebody always wins.
How many times can I undo?
Once a game. It returns you to the start of your turn, so any extra lines you drew after closing a box are removed as well. Once it is used it is gone for that game, and the result is still recorded as normal.
How is the decisive move chosen?
For every line you drew, it counts how many boxes your opponent went on to take immediately afterwards, and points at the line where the most went over. Ties go to the earlier line. It is usually the line that first opened the longest chain.
Where are my records kept?
Wins and losses against the computer are kept per board size (3×3, 4×4, 5×5) and per level, with your current and best streaks kept per level. All of it is stored in this browser only, walking out mid-game is recorded as a resignation loss, and clearing your browser data clears it.