Lesson 4 of 4
Simple rules, complex behaviour.
Conway's Game of Life: a board of cells, each counting its eight neighbours. A one-sentence rule, and out of it still shapes, blinkers, gliders that travel across the board, and even a computer.
Step 1 of 8 · The rules
Step 1 of 8
The rules
The Turing machine showed that a whole computation can come from a few simple rules. In 1970 John Conway went a step further: a board of cells, and one rule all the cells obey at once. This is the Game of Life, an example of a cellular automaton.
Every cell is alive or dead. Each generation, every cell counts how many of its eight neighbours are alive, diagonals included:
- A dead cell with exactly 3 live neighbours is born.
- A live cell with 2 or 3 live neighbours survives.
- Every other cell dies, or stays dead.
Look inside is open at Neighbours: each cell shows its number of live neighbours, in a colour that says what happens to it next generation.
Step 2 of 8
One generation
On the board is the R-pentomino, only five cells. All cells update together, by the counts of the current generation: a cell born now is not counted until the next generation.
Step 3 of 8
Counting births
Births happen in empty cells, so you have to count the neighbours of the cells around the shape too, not just of the live ones.
Step 4 of 8
Shapes that move
Later on the R-pentomino bursts into a thousand generations of chaos, filling the board and throwing shapes out. To understand what goes on, look at small shapes one at a time. Start is Pattern zoo: in the back row shapes that do not change, in the middle shapes that blink, and at the front two that do something else.
Step 5 of 8
Still or blinking
Look inside at Patterns, forty generations after the start. Each group of cells is coloured by what it does: a still life does not change, an oscillator comes back to itself after a few generations, and a spaceship comes back to itself somewhere else.
Step 6 of 8
Changing the rule
The Game of Life’s rule was not picked at random. Conway looked for a rule under which shapes neither die out too fast nor fill the board, so that something interesting goes on for a long time. Here the board starts from a Random soup.
Step 7 of 8
A rule that freezes
Born with and Survives with are free now. There are sixteen combinations; try some and watch the soup.
Step 8 of 8
A computer made of cells
Start is Glider gun, a shape that comes back to itself every thirty generations and fires a new glider each time. Nobody designed it into the rule; it was found inside it.
Loading the interactive version…
Loading the interactive version…
Each step sets up the Scene for you, and a control marked “fixed” stays put for that step.
Practice · Choose
Under the Game of Life’s rules, Born with 3 and Survives with 2 or 3. A live cell with four live neighbours: what happens to it next generation?
Practice · Choose
Under the Game of Life’s rules, Born with 3 and Survives with 2 or 3. A live cell with four live neighbours: what happens to it next generation?
Practice · Predict, then look
Start is R-pentomino: five live cells, and Look inside at Neighbours shows how many live neighbours each cell has. How many live cells will there be in generation 1?
Practice · Predict, then look
Start is R-pentomino: five live cells, and Look inside at Neighbours shows how many live neighbours each cell has. How many live cells will there be in generation 1?
Practice · Calculate
In the same R-pentomino, at generation 0: in how many empty cells will new cells be born on the way to generation 1?
Practice · Calculate
In the same R-pentomino, at generation 0: in how many empty cells will new cells be born on the way to generation 1?
Practice · Predict, then look
Start is Pattern zoo: a block, blinkers, a pulsar, and at the lower right a glider, five cells shaped like an arrow. What will the glider do?
Practice · Predict, then look
Start is Pattern zoo: a block, blinkers, a pulsar, and at the lower right a glider, five cells shaped like an arrow. What will the glider do?
Practice · Calculate
Look inside at Patterns, at generation 40 of the zoo: each group is coloured by what it does. How many of the groups are still lifes, ones that do not change at all?
Practice · Calculate
Look inside at Patterns, at generation 40 of the zoo: each group is coloured by what it does. How many of the groups are still lifes, ones that do not change at all?
Practice · Predict, then look
Survives with will change to Never: every live cell dies next generation unless it is born again. What will happen to the random soup?
Practice · Predict, then look
Survives with will change to Never: every live cell dies next generation unless it is born again. What will happen to the random soup?
Practice · Reach the target
Find a rule, with Born with and Survives with, under which the random soup freezes within a hundred generations into a few still shapes and blinkers, and press Check.
Practice · Reach the target
Find a rule, with Born with and Survives with, under which the random soup freezes within a hundred generations into a few still shapes and blinkers, and press Check.
Practice · Choose
The Game of Life’s rule fits in one sentence. What has been proved to be buildable from it?
Practice · Choose
The Game of Life’s rule fits in one sentence. What has been proved to be buildable from it?
Lesson complete. Every practice question here is done.