math · computing · emergence

Conway’s Game of Life

One rule about counting neighbours makes shapes that walk, a gun that fires them forever, and logic gates built from their collisions. Predict a glider, then send bits through a working AND gate.

October 7, 2026

In 1970 the mathematician John Conway invented a game with no players. You place some stones on a grid of squares, then just watch. One rule decides everything, and it only ever looks at a square’s eight neighbours. Nothing tells any stone to move. Yet the machine on the left of this picture keeps firing small walkers across the board, and it never runs out.

Generation 0
Live, not a video: every frame is computed from the one before. Gliders that leave the picture are removed, as if the board went on forever.

How can a rule that only counts neighbours build a machine? And what can such a machine do? Let’s start with one square.

One rule, eight neighbours

Life runs in ticks called generations. At every tick, each square counts how many of its eight neighbours hold a stone, and that number alone decides what the square holds next. Tap the neighbours to change the count. Tap the middle square to put a stone there or take it away.

A stone ringed in orange will be gone next generation. A dashed blue circle marks an empty square where a stone will appear.

That’s the whole game. An empty square with exactly three neighbours gets a stone. A stone with two or three neighbours stays. Every other stone disappears, from loneliness or from crowding.

Everybody at once

The catch is that every square on the board applies the rule at the same moment, using the counts from the old generation. A single square is easy to predict. A group of them, all changing together, is not.

Here are five stones. Before you step them forward, what do you think they will do?

Generation 0
The gold squares show where the shape started. This little board wraps around: whatever walks off one edge comes back on the opposite one.

It walks. Every four generations the same five-stone shape comes back, one square further down and to the right, and it keeps going forever. It’s called a glider.

Look at what actually happens, though: no stone ever moves. Stones only appear and disappear in place, and the pattern travels across the board. Try the other shapes too. A block never changes, and a blinker flips between two states forever. Most messy starting positions end up as some mix of the three: still, blinking, or flying away.

A machine that never stops

Conway guessed that no starting pattern could grow forever, and he offered $50 to anyone who could prove him wrong. In November 1970 a group at MIT led by Bill Gosper won the prize with the machine at the top of this page: the glider gun. Two small shuttles bounce back and forth between pairs of blocks, and every time they pass each other they throw off a glider. One glider every 30 generations, forever.

So now we have something that travels, and a machine that makes a steady stream of them. That should make an engineer sit up. A stream of gliders with some of them missing is a message: a glider is a 1, a gap is a 0.

When gliders collide

Gliders that crash into each other usually leave a smoking mess. But aim two of them at right angles with exactly the right timing, and both vanish without a trace. Below, the gun fires down to the right as before. Your message, a line of green gliders, comes in from the top right. Set the four bits, press Play, and read what comes out along the gold lane.

Message
Out
The first bit is the first glider to arrive. Colours only mark where a glider came from; the rule itself doesn’t care.

Every 1 you send kills a gun glider, and every 0 lets one through. What comes out is your message flipped. That’s a NOT gate, one of the building blocks of every computer, and it’s made from nothing but the counting rule.

Two messages make AND

Now send a second message, B, across the gun’s stream a little further down. A B glider normally runs into a gun glider and both vanish. It survives only if that gun glider is already gone, and that happens only when A sent a 1 at the same moment. So B’s gliders make it out the other side exactly where A and B are both 1.

A
B
A and B
Try all four combinations: 1 and 1 is the only one that gets through.

With NOT and AND you can build any logic circuit at all. Add a few more glider tricks, such as ways to copy a stream, turn it, and hold a bit in memory, and you have everything a computer needs. In 1982 Conway and his co-authors Elwyn Berlekamp and Richard Guy sketched why Life can compute anything an ordinary computer can. In 2000 Paul Rendell built a working Turing machine out of guns and gliders. In 2006 Brice Due designed a huge tile that behaves like a single Life square, so Life can even run a giant, slow copy of itself.

All of it comes from the rule you played with above: count to three.

Your turn

Here’s an open board. Tap squares to add or remove stones (with a mouse you can also drag to paint), pick a starting shape, and press Play.

Gen 0 · 0 stones
Stones that fly off the edge are gone for good, as if the board went on forever.

Try this: