Dots and Boxes: Rules, Strategy & How to Win Every Time

Quick Info

Players
2
Equipment
Paper & pencil
Difficulty
Easy to learn / hard to master
Game Length
5–15 minutes
Also Known As
Squares, Paddocks, Dots

Introduction

Dots and Boxes is one of the most popular pencil-and-paper games ever devised. Chances are you played it as a child on the back of a napkin, in the margins of a school notebook, or on a long car journey — drawing lines between dots, racing to close off little squares before your opponent could. It is played by millions of people worldwide, from schoolchildren to professional mathematicians, and its appeal crosses every culture and language barrier.

The game was invented by the French mathematician Édouard Lucas in 1889. Lucas — better known for his work on number theory, the Fibonacci sequence, and the Tower of Hanoi puzzle — published it under the name la pipopipette in his landmark four-volume work Récréations Mathématiques. What looked like a simple children’s pastime turned out to conceal a surprising amount of mathematical depth.

That is the great paradox of Dots and Boxes: it is deceptively simple. A five-year-old can learn the rules in under a minute, yet beneath the surface lies serious mathematical strategy involving chain control, parity arguments, and a branch of combinatorial game theory called Nimstring. Casual players rely on instinct; strong players see the entire endgame before a single box is completed.

In this guide, we cover everything — from the basic rules to the advanced double-cross technique that separates beginners from experts. Whether you are picking up a pencil for the first time or looking to sharpen your competitive edge, read on.

What You Need

One of the greatest virtues of Dots and Boxes is that it requires almost nothing to play. There is no special equipment, no cards, no dice, and no board to buy. All you need is:

That is it. No preparation, no shopping, no setup time beyond drawing the initial grid of dots. This simplicity is why Dots and Boxes is the perfect game for waiting rooms, restaurants, aeroplanes, classrooms, and any situation where you have a few minutes to kill and a writing implement handy.

Setup

Setting up a game of Dots and Boxes takes less than a minute:

  1. Draw a rectangular grid of dots. The most common sizes are 5×5 (which creates a 4×4 grid of 16 possible boxes), 6×6 (25 boxes), or 4×4 (9 boxes) for a quicker game. Space the dots evenly — roughly 1–2 cm apart works well on standard paper. Graph paper makes this particularly easy.
  2. Each player chooses a marking system. Ideally, use two different coloured pens. If you only have one, agree that Player A will write “A” inside their captured boxes and Player B will write “B.”
  3. Decide who goes first. Flip a coin, play rock-paper-scissors, or simply let the younger player start. On small grids, going first offers a slight advantage; on larger grids, going second is often stronger (more on this in the Strategy section).

Here is what a blank 4×4 dot grid (creating a 3×3 field of 9 potential boxes) looks like:

Starting Grid (4×4 dots)

· · · · · · · · · · · · · · · ·

Each pair of horizontally or vertically adjacent dots can be connected by one line. On this 4×4 grid there are 24 possible line segments and 9 potential boxes.

How to Play

  1. Draw one line per turn On your turn, draw exactly one horizontal or vertical line segment connecting two adjacent dots. You may not draw diagonal lines, skip dots, or draw a line where one already exists.
  2. Complete the fourth side of a box to score When your line completes the fourth and final side of a 1×1 square, you have captured that box. Write your initial (or mark it in your colour) inside the box. You score one point for each box completed.
  3. Take a bonus turn Completing a box earns you an immediate bonus turn. You must draw another line right away. If that line also completes a box, you score again and take yet another bonus turn. This chain reaction is a core part of the game’s strategy.
  4. Chain multiple captures A well-set-up chain can let you claim many boxes in a single turn. In the late game, it is common to see a player sweep an entire row or column of boxes in one continuous sequence of bonus turns. Controlling these chains is the key to winning.
  5. Play until the grid is full The game continues — alternating turns (unless earning bonus turns) — until every possible line between adjacent dots has been drawn. At that point, every box on the grid will have been claimed by one of the two players.
  6. Count boxes and declare the winner Each player counts the boxes bearing their initial or colour. The player with the most boxes wins. On an even-numbered grid of boxes (e.g. 16 boxes on a 5×5 grid), ties are possible but rare in skilled play.

Visual Example: A Game in Progress

Let us walk through part of a game on a small 3×3 dot grid (4 possible boxes) to see how play develops.

Early Game — Safe Moves

· — · · · · — · | · — · ·

After a few turns, several lines have been drawn but no box has three sides completed yet. Both players are playing it safe — avoiding giving away a free box.

Danger Zone — Third Side Drawn

· — · · | | · · — · | · — · ·

Now the top-left box has three sides completed. Whoever is forced to draw a line elsewhere will eventually give their opponent the chance to close this box and score. This is the critical moment where strategy takes over.

Chain Capture

· — · — · | A | | · — · · | | · — · — ·

Player A completes the top-left box and writes their initial. They earn a bonus turn and continue drawing lines, potentially setting up the next capture in the chain.

Strategy: From Beginner to Expert

At a casual level, Dots and Boxes seems purely reactive — you draw lines and hope to stumble into completed boxes. But serious players know the outcome is often determined long before the first box is captured. Here are the key strategic concepts, from simplest to most advanced.

The Opening Phase: Stay Safe

In the early game, there are plenty of lines to draw without giving anything away. The cardinal rule of the opening is simple: never complete the third side of any box. Drawing the third side hands your opponent a free point, because on their next turn they can simply close the fourth side and score.

As the game progresses, the number of “safe” moves shrinks. Eventually, every possible line will either complete a third side or a fourth side. That is when the real game begins.

The Chain Concept

A chain is a sequence of boxes connected end-to-end, where each box shares a wall with the next. When someone opens one end of a chain (by drawing the third side of the first box), the opponent can sweep through the entire chain, capturing every box in sequence using bonus turns.

Chains are the fundamental strategic unit of Dots and Boxes. The player who controls the chains controls the game. A “long chain” is any chain of 3 or more boxes, while a “short chain” has just 1 or 2 boxes. This distinction matters enormously for the double-cross technique.

The Double-Cross Strategy

The double-cross is the single most important technique in competitive Dots and Boxes. It is the move that separates players who “get lucky” from players who win consistently. Here is how it works:

When your opponent opens a long chain (say, 5 boxes), your natural instinct is to sweep all 5 boxes. Do not do this. Instead, take the first 3 boxes but deliberately leave the last 2 unclaimed. You do this by drawing the line that completes box 3 but stopping there — drawing your final bonus-turn line inside the remaining 2-box section in a way that gives those 2 boxes to your opponent.

Why sacrifice 2 points? Because your opponent must now take those 2 boxes (they have no choice — the fourth side is right there), and in doing so, they are forced to open the next chain for you. You have traded 2 boxes for control of whatever comes next — which could be 6, 8, or 10 boxes.

Double-Cross Rule of Thumb Always sacrifice 2 boxes at the end of a long chain. You gain net boxes in the long run because you control every subsequent chain opening. The only exception is the very last chain of the game, where you should obviously take everything.

The Long Chain Rule

Here is the central theorem of Dots and Boxes strategy, stated informally: the player who captures the last long chain wins the game. More precisely, the player who is in control — meaning they get to respond to chain openings rather than being forced to open chains themselves — will win if they execute the double-cross correctly in every long chain.

This means the entire game can be reduced to a question of parity: who will be forced to make the first move that opens a long chain? If there is an odd number of long chains, the first player to face a chain opening (usually the player whose turn it is when safe moves run out) will control the last chain and win. If there is an even number of long chains, the second player in that sequence wins.

Nimstring Theory

For those interested in the mathematical underpinning, Dots and Boxes is closely related to a game called Nimstring, which is a variant of the ancient combinatorial game Nim. In Nimstring, the objective is inverted: you lose if you complete a box. Somewhat counterintuitively, solving Nimstring is equivalent to solving Dots and Boxes, because the winning Nimstring strategy tells you how to control chains and force your opponent into unfavourable positions.

Nimstring is analysed using Sprague–Grundy theory, a branch of combinatorial game theory developed by Roland Sprague and Patrick Grundy in the 1930s. Each game state is assigned a Grundy number (also called a nim-value), and the optimal strategy involves computing these values. While this is impractical to do by hand during a real game, understanding the principle helps you make better intuitive decisions about parity and chain control.

Counting Chains: Predicting the Winner

Experienced players can often predict the winner before the endgame even starts by counting the chains that will form. Here is the practical approach:

  1. Identify all potential chains on the board — sequences of boxes that will be connected when the remaining safe moves run out.
  2. Classify each chain as short (1–2 boxes) or long (3+ boxes).
  3. Count the long chains. If the number of long chains gives you the right parity (meaning you will be the one responding to chain openings, not initiating them), you are in a winning position.
  4. If you are losing on parity, look for ways to change the chain structure — perhaps by making a move that splits one long chain into two shorter ones, or merges two short chains into one long one.

This kind of forward planning is what makes Dots and Boxes such a rich strategic game. What looks like a simple children’s activity is, at its core, a battle over chain parity.

Controlling the Midgame

The midgame — the phase where safe moves are running out but chains have not yet been opened — is where most games are decided. Strong players use several techniques to gain an advantage here:

Game Variations

Dots and Boxes has inspired dozens of variations over its 130+ year history. Here are the most popular ones:

Different Grid Sizes

The simplest variation is to change the grid size. A 3×3 dot grid (4 boxes) is perfect for teaching young children the rules. A 5×5 grid (16 boxes) is the standard. A 6×6 grid (25 boxes) is used in tournaments and by serious players. For a real endurance challenge, try a 10×10 grid (81 boxes) — games can last 30 minutes or more and the chain play becomes extraordinarily complex.

Triangular Dots (Hexagonal Variant)

Instead of a square grid, arrange dots in a triangular pattern. Players draw lines between adjacent dots to form triangles instead of squares. The same bonus-turn rule applies: complete a triangle and you go again. This variant changes the geometry significantly — each “box” has only 3 sides, which makes chains form more quickly and the game feels faster and more volatile.

3D Dots and Boxes

For the truly ambitious, Dots and Boxes can be extended into three dimensions. Draw a cube-shaped grid of dots and allow lines in all three axes. Players compete to complete 3D cubes (6 faces) instead of flat squares. This variant is extremely challenging to play on paper (most people use a computer) and has barely been analysed mathematically.

Speed Dots and Boxes

In this timed variant, each player has only 5 seconds per move. A third person acts as timer and calls out when time is up. If a player fails to draw a line in time, their turn is skipped. Speed Dots and Boxes rewards quick pattern recognition over deep calculation and is excellent for parties and classrooms.

Dots and Boxes with Weighted Scoring

In this house variant, some boxes are worth more than others. Before the game begins, randomly assign values (1, 2, or 3 points) to each potential box by writing small numbers in the spaces between dots. Players now must weigh whether to chase high-value boxes or stick to the chain-control strategy. This adds a layer of tactical decision-making on top of the standard game.

Mathematical Significance

Dots and Boxes holds a special place in the field of combinatorial game theory. Unlike many paper-and-pencil games, it has been the subject of serious academic research for over a century.

The game has been computationally solved for small grids. Elwyn Berlekamp, one of the most influential combinatorial game theorists of the 20th century, published The Dots and Boxes Game: Sophisticated Child’s Play in 2000, which remains the definitive academic treatment. Berlekamp showed that the game is equivalent to a sum of simpler combinatorial games and developed tools for evaluating positions using Nimstring theory.

Key results include:

Despite its simple rules, Dots and Boxes remains an active area of research in mathematics and computer science, with connections to graph theory, nim-value computation, and artificial intelligence.

Tips for Teaching Children
  • Start small. Use a 3×3 dot grid (just 4 boxes) for the first few games. Young children can grasp the rules in a single round.
  • Use different colours. Give each player a different coloured pen — it makes it much easier to see who owns which boxes and lines.
  • Explain the bonus turn first. The “complete a box, go again” rule is the most exciting part of the game for kids. Make sure they understand it before you start.
  • Let them discover the third-side trap. Rather than explaining advanced strategy up front, let children figure out for themselves that drawing the third side of a box gives the opponent a free point. This “aha moment” is a wonderful lesson in thinking ahead.
  • Gradually increase grid size. Once a child consistently spots third-side traps on a 4×4 grid, move them up to 5×5. Introduce chain thinking when they are ready — usually around age 8–10.
  • Use graph paper. It makes drawing a neat, even grid effortless and avoids arguments about whether dots are properly aligned.

Play Dots and Boxes Online

Our interactive browser version is coming soon! Play against a friend or challenge the AI right here on the page.

A Brief History of Dots and Boxes

Édouard Lucas first described the game in 1889, but pencil-and-paper games involving dots and lines likely existed in folk form before that. Lucas’s version gave the game a formal structure and mathematical flavour that ensured its survival and spread.

By the early 20th century, Dots and Boxes had become a staple of schoolyard play across Europe and North America. It appeared under many names: Squares in the United States, Dots in the United Kingdom, Paddocks in parts of Ireland, La Pipopipette in France, and Käsekästchen (cheese boxes) in Germany.

The game received renewed academic attention in the 1960s and 70s when researchers at Bell Labs and various universities began applying combinatorial game theory to pen-and-paper games. Elwyn Berlekamp’s decades of research culminated in his 2000 monograph, which transformed Dots and Boxes from a casual pastime into a recognised object of mathematical study.

Today the game continues to thrive. It is played online, on mobile apps, and — most importantly — on scraps of paper in classrooms and restaurants around the world. Its combination of accessibility and hidden depth ensures that it will remain popular for generations to come.


Frequently Asked Questions

The most common grid is 5×5 (25 dots), which creates 16 possible boxes. Beginners may start with a 3×3 grid (9 dots, 4 boxes), while experienced players often use 6×6 or larger grids. You can use any rectangular arrangement — the only requirement is at least 2×2 dots to form one box.

When you draw a line that completes the fourth side of a box, you write your initial inside that box to claim it, score one point, and immediately take another turn. This bonus turn is crucial — if it completes another box, you keep going. A single turn can chain together many boxes.

Dots and Boxes has been computationally solved for small grid sizes. The 2×2, 3×3, and 4×4 box grids are fully solved with known optimal strategies. The 5×5 grid was solved in 2002 by researchers using combinatorial game theory. Larger grids remain unsolved due to the exponential number of possible game states.

The double-cross is the most important advanced strategy. When your opponent opens a long chain, instead of taking every box in the chain, you deliberately leave the last two boxes unclaimed. Your opponent must then take those two boxes, but in doing so they are forced to open the next chain for you. This sacrifice of two boxes lets you control the rest of the game.

While Dots and Boxes is designed for 2 players, it can be played with 3 or more. Each player uses a different initial or colour. However, with more than 2 players the strategic depth decreases because chain control and the double-cross technique work best in head-to-head play. For multiplayer groups, a larger grid is recommended.

Édouard Lucas, a French mathematician, invented Dots and Boxes in 1889. He published the game under the name “la pipopipette” in his book Récréations Mathématiques. Lucas is also known for his contributions to number theory, the Fibonacci sequence, and for creating the Tower of Hanoi puzzle.

A 5×5 grid (16 boxes) is the most popular all-round size, offering enough strategic depth without making the game too long. Beginners should start with 3×3 (4 boxes) or 4×4 (9 boxes) to learn the basics. Expert players who enjoy deep strategy often play on 6×6 (25 boxes) or larger grids where chain play becomes even more critical.

A game typically takes 5 to 15 minutes depending on the grid size and the players’ experience. A small 3×3 grid can be finished in under 2 minutes, a standard 5×5 grid takes 5–10 minutes, and larger grids like 8×8 or 10×10 can last 20–30 minutes. The game’s short duration makes it ideal for quick rounds during breaks or while waiting.