On this page
Hackenbush is a pencil-and-paper game in which two players take turns rubbing out coloured edges of a drawing. It was invented by the mathematician John Horton Conway (Hackenbush, Wikipedia), whose name is also on the look-and-say sequence and Conway's constant. What makes it worth an evening is what it teaches: every position can be given an exact number, and that number tells you who wins before anyone moves.
How do you play Hackenbush?
Draw a ground line, then a picture made of edges, each connected to the ground by some path. In Blue-Red Hackenbush every edge is blue or red. One player, Blue (called Left), may cut only blue edges; the other, Red (called Right), may cut only red ones. When you cut an edge, every edge no longer connected to the ground falls and is erased. Under the normal play rule, the first player who cannot move loses (Hackenbush, Wikipedia).
Because the players have different moves, Blue-Red Hackenbush is a partisan game (MIT SP.268 notes, Surreal Numbers and Games), unlike Nim, where both share the same moves (how to win at Nim with the XOR rule).
Hackenbush has often been used as an example in combinatorial game theory, beginning with Conway's On Numbers and Games (1976) and Winning Ways for Your Mathematical Plays, first published in 1982 by Elwyn Berlekamp, John Conway and Richard Guy (Hackenbush, Wikipedia; Winning Ways, Wikipedia).
How do Hackenbush positions get numerical values?
Think of the value as how many spare moves Blue has over Red. A single blue edge is worth 1, because Blue has one move and Red has none; a single red edge is worth -1 (MIT SP.268 notes). A blue stalk of two edges is worth 2. If Blue starts with 8 separate edges and Red with 5, Blue has a 3-move advantage and the position is worth 3, as the same notes put it.
Now the surprise. Take a stalk with a blue edge on the ground and a red edge on top. Blue's only move cuts the bottom edge, and the red edge falls with it, leaving nothing. Red's only move cuts the top, leaving one blue edge worth 1. Blue is clearly ahead, but by less than a whole move: add a single red edge and Red wins whoever starts. The MIT notes show this stalk is worth exactly 1/2, half a move, and check it by adding two copies to get 1 (MIT SP.268 notes).
How do you add games and tell who wins from the sign?
Put two drawings side by side and you have a sum of games: on each turn you move in exactly one of them. The value of the whole is the sum of the parts, which is how the MIT notes reason that a blue edge beside a red one should be 1 - 1 = 0, and that two half-move stalks make 1/2 + 1/2 = 1 (MIT SP.268 notes). Then read the sign:
Positive: Blue wins, whoever moves first.
Negative: Red wins, whoever moves first.
Zero: the second player to move wins.
On Numbers and Games states the same classification and adds a fourth case for games that are not numbers: they can be fuzzy, meaning the first player wins (On Numbers and Games, Wikipedia).
A worked example
Take the position in the picture: a blue 2-stalk, a blue-red stalk and one red edge.
Value each piece: 2, 1/2 and -1.
Add them: 2 + 1/2 - 1 = 3/2.
Read the sign: positive, so Blue wins whether Blue moves first or second.
Check Red starting. Red can cut the lone red edge (leaving 2 + 1/2 = 5/2) or the top of the blue-red stalk (leaving 2 + 1 - 1 = 2). Both stay positive, so Blue still wins.
Find Blue's best first move. Cutting the top of the blue stalk leaves 1 + 1/2 - 1 = 1/2. Cutting the bottom of the blue-red stalk leaves 2 - 1 = 1. Cutting the bottom of the blue stalk leaves 1/2 - 1 = -1/2, a losing blunder.
The lesson from step 5: when every piece is a number, spend the move that costs you the least value, and never chop off your own stalk at the root.
What are Conway's surreal numbers?
Conway's research on the endgame of Go led to the original definition of surreal numbers, and Donald Knuth coined the name in his 1974 book Surreal Numbers; Conway then used them to analyse games in On Numbers and Games (Surreal number, Wikipedia). They contain the real numbers plus infinite and infinitesimal numbers (same source).
Hackenbush is a way to see them. Finite Blue-Red Hackenbush drawings can build the dyadic rationals, fractions whose denominators are powers of two, like 1/2, 3/4 and 5/8, while infinite drawings reach the real numbers and beyond (Hackenbush, Wikipedia).
Why should a student play Hackenbush?
It is fractions, recursion and proof by cases in one sheet of paper. Every claim you make (this is worth 1/2, Blue wins) can be checked by playing, so you learn to test your own reasoning rather than trust it. If recursion or the ordering of numbers feels shaky, the Fermi Concept Library gives every concept in mathematics its own lesson and its place in the map. When you move on to written problems, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer.
Start with a pencil, two colours and the half-move test above.



