Dots and Boxes — Free

The classic pencil-and-paper strategy game, now against a computer. Draw lines, close squares and claim more boxes than your opponent. Finish a box and you move again.

Wins
0
Losses
0
Ties
0
Your turn — draw a line
You0
Computer0

You win! 🎉

What is Dots and Boxes?

Dots and Boxes is a classic two-player strategy game played on a grid of dots. Players take turns drawing a single horizontal or vertical line between two dots that sit next to each other. The goal is simple to state but surprisingly deep to master: whenever your line completes the fourth side of a small 1×1 square, you claim that square as yours and immediately take another turn. When every possible line has been drawn, the game ends and the player who owns the most squares wins. On vygam you play against a computer opponent, and your line is drawn in green while the computer's squares fill in purple, so at a glance you can always see who controls the board.

The game dates back to the 19th century, when the French mathematician Édouard Lucas described it under the name "la pipopipette." It has stayed popular ever since because the rules fit on the back of a napkin while the tactics run remarkably deep. The early moves feel harmless — you are just filling in lines — but a turning point always arrives when the safe moves run out and the board splits into long connected runs of squares called chains. From that moment on, every line you draw hands your opponent something, and the winner is decided by who understood the shape of those chains first. That tension between a childlike surface and a genuinely strategic core is exactly why Dots and Boxes has survived on classroom whiteboards and café napkins for well over a century.

How to Play

1Choose a difficulty to set the grid size, then draw the first line by tapping any gap between two neighbouring dots.
2You and the computer alternate. On your turn draw exactly one line — horizontal or vertical — joining two adjacent dots.
3Complete the fourth side of a square to claim it in your colour, then take another turn straight away.
4Play continues until every line is drawn. Whoever owns more squares wins; equal squares is a tie.

The rules are strict about what counts as a legal move. A line is not allowed if:

  • it joins two dots that are not directly adjacent — moves are only ever horizontal or vertical, never diagonal;
  • it retraces a line that has already been drawn — every edge can be played only once and can never be erased;
  • it is a skipped turn — you must draw one line each turn unless you have just earned a bonus turn by closing a box;
  • it tries to steal a finished square — once a box is claimed it belongs to its owner for the rest of the game.

Dots and Boxes Tips & Strategy

Dots and Boxes looks like a game of luck for the first minute, then reveals itself as a game of control. Beginners grab every square they can; strong players think a whole chain ahead and force their opponent to hand boxes over. These four ideas are the difference between guessing and winning.

  1. Never draw the third side

    Every square you give a third side becomes a free gift — your opponent simply closes the fourth side and takes it. In the opening, only ever play "safe" lines that leave every touched square with two sides or fewer. The computer follows this rule too, so the middlegame is really a race to run out of safe moves last. Count your safe options before each move so you are never the first one forced to give a box away.

  2. Learn the chain rule

    Late in the game the empty squares link up into long chains. Whoever is forced to open the first long chain usually loses, because the opponent eats straight through it. The chain rule is the parity trick that decides who is forced: try to control how many long chains exist so the obligation to open one lands on your opponent, not you. As a practical habit, count the long chains as they form and steer the board toward a count that leaves the other side out of safe moves first.

  3. Use the double-cross

    When you are forced to take a chain, resist grabbing every box. Instead take all but the last two, then draw the line that closes them off as a pair — a move called the double-cross or "all-but-two." You hand your opponent those two squares, but they are then forced to open the next chain for you. Sacrificing two boxes to win an entire chain is the single most powerful move in the whole game.

  4. When forced, open the shortest chain

    Sooner or later you will have no safe move and must open a chain. When that happens, open the shortest one available. Giving away a two-box chain hurts far less than cracking open a chain of six, and it keeps the long chains in reserve where the double-cross can still win them back. Think of it as paying the smallest possible toll while you wait for your opponent to run out of safe moves.

Board Sizes & Difficulty

vygam offers three board sizes so the challenge can grow with you. Easy is a 4×4 grid of boxes — that is a five-by-five field of dots and sixteen squares to fight over, small enough that you can hold the whole board in your head. Medium steps up to a 5×5 grid with twenty-five squares, giving longer chains and more room for the chain rule to swing a game. Hard is a 6×6 grid with thirty-six squares, where several long chains usually form and a single well-timed double-cross can flip the entire result.

Larger boards are not just bigger; they change how the game plays. More squares mean longer chains, and longer chains make parity and the double-cross far more decisive — a beginner who takes every box will lose badly on the 6×6 grid even after leading early. If you are new to Dots and Boxes, start on Easy to get comfortable spotting safe moves, then move up once you can reliably avoid handing over the third side of a square. Your win, loss and tie record is saved in your browser and carries across every size, so you can watch your results improve as your chain reading sharpens.

Playing Against the Computer

The computer opponent plays by clear, consistent principles rather than random guessing. Whenever a square is sitting on three sides, it takes the free box — and because closing a box grants another turn, it keeps taking every box it can before doing anything else. When no free boxes are available it looks for a safe line, one that does not hand you the third side of any square, so it never gives away a box carelessly. Only when every remaining move is unsafe will it open a chain, and even then it opens the shortest chain it can find to keep the sacrifice as small as possible.

That means you cannot beat the computer by hoping it blunders — you have to out-think it with the chain rule and the double-cross. Set up the board so that it runs out of safe moves before you do, then use all-but-two to feed it a short chain while you keep the long ones. Every finished game updates your running Wins, Losses and Ties tally, and a fresh board is one tap away with the New game button whenever you want a rematch or a different grid size.

FAQ

Is Dots and Boxes free to play?

Yes — Dots and Boxes on vygam is completely free. There is no download and no sign-up; it plays instantly in your browser on phone, tablet or desktop.

How do you play Dots and Boxes?

Two players take turns drawing one horizontal or vertical line between two neighbouring dots. When your line completes the fourth side of a 1×1 square you claim that square and take another turn straight away. Once every line is drawn, whoever owns more squares wins.

What is the chain rule in Dots and Boxes?

The chain rule is the key advanced strategy. Late in a game the board breaks into long chains of squares, and whoever is forced to open the first long chain usually loses it. Skilled players count the chains and use safe moves and the double-cross to force the opponent to open first.

Who goes first in Dots and Boxes?

On vygam you always move first against the computer. Who moves first can matter through the chain rule, because it affects who is eventually forced to open a chain, but good chain and double-cross play matters far more than the opening move.

What is the double-cross trick in Dots and Boxes?

The double-cross, or all-but-two, is when you decline the last two squares of a chain instead of taking them. By drawing the closing line you hand the opponent those two boxes but force them to open the next chain for you — sacrificing two squares to win many more.

Games like Dots and Boxes