Dots and Boxes

Draw lines, close boxes, and never give away a chain.

Made by
SuperFunGames (Stuffly LLC)
Players
1 player · 2 players taking turns on one screen · no online play
Controls
Keyboard · Mouse · Touch screen
Runs in
Any modern web browser, nothing to download
Saving
Nothing is saved: the win tally resets when you change mode or reload the page.
On the site since
October 4, 2026
Last updated
November 3, 2026

About Dots and Boxes

Dots and Boxes is a pencil-and-paper classic on a grid of 5 by 5 boxes. Take turns drawing one line between two dots, and when you close the fourth side of a box you claim it and draw again. When every line is drawn, the player with more boxes wins. Play the Bot or a friend on one screen.

The board has 36 dots, 60 lines and 25 boxes to win. Since 25 is an odd number, one player always wins and a game can never end in a tie. The French math writer Edouard Lucas wrote about this game back in 1889. On Hard, the Bot knows a clever endgame trick: it gives away two boxes on purpose so that you have to open the next long chain for it.

What's inside

Goal and scoring

How to play

Player 1

Player 2

Modes and difficulty

Tips

Strategy guide

The opening is a waiting game. As long as there are safe lines, ones that do not put a third side on any box, draw those and never hand over a box for free. While you play safe lines, watch how the board is turning into chains: long corridors of boxes that will all fall together once someone opens one end. Short chains of one or two boxes and long chains of three or more behave very differently at the end.

When the safe lines run out, someone has to open a chain. If your rival opens a long chain for you, take every box except the last two, then draw the line that leaves those two as a pair for your rival. They take two boxes, but then they must open the next chain for you. This trick is called the double-cross. Count the long chains early: who is forced to open the first one decides who gets to use the trick.

Easy takes an available box about three times in four and often draws a risky third side. Normal always takes free boxes, plays safe lines while they last and then opens whatever gives away the fewest boxes. Hard does all of that and also uses the double-cross: it leaves you two boxes on purpose when the rest of the board is worth more. To beat Hard, take care with the number of long chains so it is the one that has to open them.

Questions and answers

Can a game end in a tie?
No. There are 25 boxes, an odd number, so one player always has more boxes when the last line is drawn.
Why did I get another turn?
Whenever your line closes a box, you claim it and must draw again. That keeps going until you draw a line that closes nothing.
How good is the computer?
Easy makes careless moves, Normal never gives away a box while a safe line is left, and Hard also knows the endgame trick of giving up two boxes to win a long chain.
Does it work on touch screens?
Yes. Tap the gap between two dots to draw a line. On a keyboard, Tab moves between lines and Enter or Space draws.
What is a chain?
A chain is a line of boxes joined so that once one box is opened, the next player can take them one after another. Late in the game, the board is mostly chains, and controlling who opens them decides the winner.

More games like Dots and Boxes

All games