Dots and Boxes · History guide
The history of Dots and Boxes
Invented by the mathematician Édouard Lucas in 1889, played badly by millions of schoolchildren ever since, and given a rigorous theory by Elwyn Berlekamp a century later.
The short answer
- Dots and Boxes was published in 1889 by Édouard Lucas as La Pipopipette.
- Lucas also invented the Tower of Hanoi and gave his name to the Lucas numbers.
- It spread worldwide as a paper game with dozens of local names.
- Elwyn Berlekamp developed its combinatorial theory, published in 2000.
- Small boards are solved; standard boards are not, but their endgames are fully computable.
A mathematician's game from 1889
Dots and Boxes has a precise origin, which is rare for a paper game: it was published in 1889 by the French mathematician Édouard Lucas, under the name La Pipopipette. Lucas is better known for the Tower of Hanoi, which he also invented, and for the Lucas numbers.
Lucas presented the game as a diversion, and it spread the way paper games spread — through schools, in the margins of exercise books, with no publisher and no equipment. Within a generation it was being played under local names everywhere: Squares, Paddocks, Dots, Käsekästchen ("little cheese boxes") in German, Timbiriche in Mexico.
Its cultural position is unusual: universally known, almost never taken seriously, and — as it turns out — one of the deepest games ever played on squared paper.
Berlekamp, and the theory nobody expected
The mathematician Elwyn Berlekamp — a founder of combinatorial game theory, and co-author of Winning Ways for Your Mathematical Plays — spent decades analysing Dots and Boxes, and published the results in 2000 as The Dots and Boxes Game: Sophisticated Child's Play.
The book demonstrated something counter-intuitive: a game children play badly for fun has a rigorous theory with named concepts and calculable values. The essentials:
- The endgame decomposes into chains and loops, and the whole game is about their number and length.
- The double-cross — declining the last two boxes of a chain to keep your opponent on the move — is the central technique.
- There is a parity rule connecting the number of long chains, the board size and who should aim to move first.
- Positions can be assigned values using Nimber theory, connecting the game to Nim.
Computers and the modern game
Dots and Boxes is a standard exercise in game programming, and small boards have been solved exhaustively. The state space grows very quickly with board size — every line is either drawn or not, so a 5×5 board has 60 lines and 260 line states before symmetry — which puts the standard tournament board beyond complete solution while leaving the endgame entirely computable.
That is why implementations, including the one on this site, use a hybrid: heuristic play in the opening, and exact analysis from the point where the chains form. It mirrors how strong humans play, because the opening genuinely does not matter much and the endgame is everything.
There is a small competitive scene, mostly online, and the theory is well enough established that serious games are decided by chain counting rather than by tactical oversight.
Common questions
Who invented Dots and Boxes?
Édouard Lucas, the French mathematician, who published it in 1889 as La Pipopipette. He also invented the Tower of Hanoi.
Is Dots and Boxes a solved game?
Small boards have been solved by computer. Standard boards such as 5×5 are not solved, although their endgames can be analysed exactly.
What did Berlekamp contribute?
A full combinatorial theory: chains, loops, the double-cross technique and a parity rule linking the number of long chains to who should move first. He published it in 2000.
What is the game called in other countries?
La Pipopipette in French, Käsekästchen in German, Timbiriche in Mexico, and Squares, Paddocks or simply Dots in various English-speaking places.
Why is such a simple game so deep?
Because the rules create an endgame where you are punished for having to move. Counting chains and controlling who opens them turns out to be a genuinely hard combinatorial problem.
Play Dots and Boxes free, right now
No sign-up, no download — it runs in your browser against the computer, a friend on the same device, or a friend online.