87Games

How Conway’s Game of Life grows

One rule decides which squares live. Test it on a single square, watch patterns stay, blink and walk, and see what a random soup turns into.

The grid

One rule, and a world that grows by itself

The Game of Life is not a game with players. It is a sheet of squares, each one alive or empty. You set the squares, press a button and watch what happens. One rule, the same for every square, decides who is alive in the next round. The mathematician John Conway made it in 1970, and it reached many readers through Martin Gardner’s column in Scientific American that October.

Three sheets to try. On the first, test the rule on one square and its neighbours. On the second, watch patterns that stay, blink or walk across the sheet. On the third, scatter a random soup and see what is left after a hundred rounds. Without a script each sheet shows one picture.

First sheet

The rule for one square

Each square has up to eight neighbours: the squares touching it, even at the corners. Count the live ones. A live square with two or three live neighbours stays alive. A live square with fewer than two dies of loneliness, and with more than three it dies of crowding. An empty square with exactly three live neighbours comes alive. Every other square is empty.

Click squares to switch them on and off. The middle square is marked, and the page tells you how many live neighbours it has and what happens to it. Press Next round to apply the rule to every square at once. The squares beyond the edge of this small sheet count as empty.

The middle square is alive and has 3 live neighbours, so it stays alive: 2 or 3 live neighbours.

Second sheet

Patterns that stay, blink or walk

Some small patterns never change. They are called still lifes, such as the block and the beehive. Some repeat after a few rounds, and are called oscillators, such as the blinker and the toad. And some move: a glider, five squares in the shape of a small arrow, walks one square diagonally every four rounds.

Pick a pattern and press Next round or Run. You can click squares to change it. The sheet wraps round at the edges, so what leaves on the right comes back on the left. The R-pentomino has only five squares, yet in an endless sheet it changes for 1103 rounds before it settles. Here it will meet itself before that.

Six patterns and what each one does
PatternWhat it does
BlockA still life: four squares in a block. Every live square has 3 neighbours, so it stays, and no empty square has exactly 3.
BeehiveA still life of six squares. It never changes.
BlinkerAn oscillator that repeats every 2 rounds: three squares in a row that turn between flat and upright.
ToadAn oscillator that repeats every 2 rounds, made of two rows of three squares.
GliderA spaceship: five squares that move one square diagonally every four rounds.
R-pentominoFive squares that change for a very long time. On an endless sheet it takes 1103 rounds to settle. On this small sheet that wraps round, it meets itself first.

Glider: five squares that move one square diagonally every four rounds.

Third sheet

A soup of random squares

Now fill the sheet with random squares, a soup, and let the rule run. The first rounds are wild. Crowded squares die and gaps fill. Then things settle. Most of the soup ends up as still lifes and blinkers, with a few gliders that wander off, but no one can tell from the start which squares will make it.

Pick how full the soup is, press Another soup, then Jump 100 rounds. The graph shows the number of live squares round by round. The page tells you if the sheet has settled into patterns that stay or repeat every two rounds, and when. Sheets that settle into longer repeats keep changing, and the page will say so.

Live squares, round by round (top = 130)

This soup started with 126 live squares and has 24 after 100 rounds.

Key takeaways

  1. Each square is alive or empty. A live square with 2 or 3 live neighbours stays alive, an empty square with exactly 3 comes alive, and every other square is empty next round.
  2. The rule is the same for every square and does nothing clever. There are no moves to choose.
  3. Simple patterns stay (still lifes), repeat (oscillators) or walk (spaceships such as the glider).
  4. A tiny pattern can change for a very long time. The R-pentomino has five squares and takes 1103 rounds in an endless sheet.
  5. You can know the rule and still not know what a pattern will do without running it.

Sources

Some of these sites could not be opened while this page was written, so some facts were checked through search results that quote them. The rule (born with exactly 3 neighbours, survive with 2 or 3, written B3/S23), Conway’s invention in 1970, Gardner’s column in the October 1970 issue of Scientific American, the still lifes and oscillators, the glider moving one square diagonally every four rounds, the R-pentomino settling at round 1103, and the glider gun found at the end of 1970 by the MIT group around Gosper each appeared in at least two places. Sources differ on the details of who first saw the glider gun, so the page says only that the MIT group found it. The page does not say that Life is as powerful as a computer, because the search gave this only in general terms. The board on the page wraps round at the edges, so patterns that grow forever on an endless sheet behave differently there. The soups come from fixed seeds. The number of live squares in the graphs is counted by the page. Nothing here is advice.