Four rules. A whole world.

Count your neighbours, then live, die or be born. That one rule builds shapes that stay, shapes that walk, and in the end machines.

  • Emergence
  • 7 min read
  • 1 simulation

How can four rules on a grid make machines?

Take a sheet of graph paper and colour some squares in. Add one rule about neighbours, and nothing else. It does not sound like much.

But from that rule you get shapes that stay put, shapes that tick like clocks, things that walk across the page, and in the end a computer.

The figure beside the text changes as you scroll, and you can paint on it whenever you like. Drag to draw, press play, open Patterns.

One cell, eight neighbours

A grid of squares. Each square is alive or dead. At every tick all the squares change at once, and each one looks only at the eight squares around it.

The middle square on the stage is empty, and two of its neighbours are alive. Tap one more, then press Step.

An empty square with exactly three live neighbours is born. A live square with two or three survives. With fewer it dies alone, and with more it dies crowded. Born, survives, dies alone, dies crowded. Those are the four rules, and there is nothing else.

Tap a neighbour to bring it to life, then press Step.

Figure. A seven by seven grid with the middle square outlined. Two of its eight neighbours are alive, a count beside the grid reads 2, and the verdict reads stays empty. Tapping a third neighbour changes the count to 3 and the verdict to born, and Step makes the middle square appear. Controls: play, step, speed, draw and erase, patterns, clear and reset.

Shapes that stay

Five small clusters, already running.

Two of them never change, the block and the beehive. Those are called still lifes. The blinker and the toad swap between two forms. The pulsar cycles through three, with 48, 56 and 72 cells. These are oscillators, and the number of ticks before one comes back is its period, which is 2, 2 and 3 here.

No line of the rule mentions a blinker. The rule only counts neighbours. These shapes are just what it happens to leave alone, or hand back after a fixed number of ticks.

Paint beside a shape, or drop one from Patterns, and see what it disturbs.

Figure. Five small clusters in a row on a wide grid: a block, a beehive, a blinker, a toad and a pulsar. The block and beehive never change. The blinker and toad swap between two forms, and the pulsar cycles through three. Each is labelled with its period.

One that walks

Five cells in a slanted shape. Watch the shape, not the cells.

After four ticks the same shape is back, one square right and one square down. Gardner noted that after two ticks it is the same shape flipped along a diagonal, so it glides.

The rule has no word for movement. Moving is something the pattern does.

The stage wraps round like a globe, right to left and bottom to top, so after 80 ticks the glider is home again.

Drop a glider from Patterns. Turn it, mirror it, send it somewhere.

Figure. A single five cell glider on a small wrapped grid, with a faint outline marking where it started. A readout counts how far it has moved. Every four ticks it has moved one square right and one square down, and after 80 ticks it is back where it began.

A start that will not settle

Five cells, called the R-pentomino. Before you press Play, guess how long it lasts.

In 1970 Conway had followed it for 460 generations, and Gardner wrote that its fate was not yet known. It takes 1,103 generations to settle. By then there are 116 cells, made up of eight blocks, four beehives, four blinkers, a boat, a loaf, a ship, and six gliders flying away.

There are twelve ways to join five cells into one piece. Eleven of them are over within ten generations. Five vanish, two become loaves and four become traffic lights. The R-pentomino is the twelfth.

Now try the acorn. Seven cells, 5,206 generations, 633 cells at the end, thirteen of them gliders.

Guess how long it lasts, then press Play. Try Acorn at Max.

Figure. Five cells in the R-pentomino shape at the centre of a very large grid, with a chart of the number of live cells against generation below. Pressing play, the pattern swells to 319 cells at generation 821, then falls to 116 cells at generation 1,103 with six gliders flying away. A second start, the acorn, takes 5,206 generations. A third choice, a smaller world, ends differently.

A gun

Gardner’s column carried a prize. Conway offered fifty dollars to anyone who could show whether a finite pattern can grow without limit. In November 1970 a team at MIT, led by Bill Gosper, won it.

Their pattern is a gun. Its 36 cells repeat exactly every 30 generations, and each time they fire a glider. The first leaves at generation 15.

The count of live cells climbs by five every 30 generations, and it never stops. The stage plots it.

Press Play. Every 30 generations, one more glider leaves.

Figure. A glider gun at the top left of a large grid, firing a glider every 30 generations toward the lower right. Below, a chart of live cells against generation climbs in a staircase, five more cells every 30 generations.

Signals, then computers

A stream of gliders can carry a signal. A glider is a 1, a gap is a 0. When two gliders meet head on they can cancel, as the stage shows. Move one over by a square and a block is left behind instead. Where they meet decides what happens.

In Winning Ways (1982), Berlekamp, Conway and Guy described how guns, collisions and shapes that swallow gliders can be put together into a computer. On an unbounded grid, that means Life can compute anything a Turing machine can, and a Turing machine is the textbook idea of a computer. Paul Rendell built a working Turing machine from Life patterns in 2000, and a universal one in 2010.

Brice Due’s OTCA metapixel (2006) is 2,048 cells on a side and acts like one Life cell, taking 35,328 generations per step. Lay a grid of them side by side and you have Life running inside Life.

Try Off by one cell, then Life in Life.

Figure. Two gliders on one diagonal flying toward each other. Head on, they cancel and both are gone at generation 20. One square off, they leave a block of four cells. A third view shows one Life cell drawn as a 2,048 by 2,048 block, the OTCA metapixel, which takes 35,328 generations to act as one step.

What this does and does not say

All of this is what people call emergence. Shapes, motion and machines turn up that the rule never mentions. It is not magic, though. The start and the rule fix every generation, and the same start always gives the same history.

What you cannot count on is a shortcut. Diehard is seven cells that last 130 generations and then vanish. Press Run until settled and see. You can predict some starts by being clever, but no method works for all of them. Life is universal, so no program can say, for every start and every target pattern, whether that target ever appears. A run that has not ended has not said no.

Life is a model. It shows what rules can do. It says nothing about whether physics is a grid. If a world did run on a grid like this, could its inhabitants tell? That is a note of its own.

Press Run until settled. Then try the acorn.

Figure. Seven cells in the Diehard shape on a large grid, a button that runs until the pattern settles, and a chart of live cells against generation. Diehard grows for a while and then vanishes completely at generation 130. A result line reports what the run found, or says that no answer has come yet.

Sources

  1. Martin Gardner, “Mathematical Games: The fantastic combinations of John Conway’s new solitaire game ‘life’”, Scientific American 223(4), October 1970, pp. 120 to 123. The rules as first stated, Conway’s aim, the fifty dollar prize, the glider and its speed, the R-pentomino followed for 460 generations, the pulsar.
  2. Conway’s Game of Life, Wikipedia. Pulsar period, Diehard at generation 130, the acorn, the prize won in November 1970 by an MIT team led by Bill Gosper, the gun’s first glider at generation 15, Turing completeness, and the undecidability of whether a target pattern ever appears.
  3. R-pentomino and Acorn, LifeWiki. 1,103 generations to 116 cells, and 5,206 generations to 633 cells with thirteen gliders. The engine behind the figure reproduces both exactly.
  4. Gosper glider gun and OTCA metapixel, LifeWiki. The gun’s 36 cells, and the metapixel’s 2,048 by 2,048 cells and 35,328 generations, built by Brice Due in 2005 and 2006.
  5. Paul Rendell, “A Turing Machine in Conway’s Game of Life”, and “Turing Universality of the Game of Life”, in Andrew Adamatzky (ed.), Collision-Based Computing (Springer, 2002).
  6. Elwyn Berlekamp, John Conway and Richard Guy, Winning Ways for your Mathematical Plays, volume 2 (Academic Press, 1982). Cited here as Wikipedia cites it for Life’s universality.
  7. Pentominoes, Polyominos and Conway’s Game of Life. What each of the twelve five cell shapes becomes.