Conway's Game of Life rules and classic patterns
The Game of Life is a cellular automaton: a grid where every cell is either alive or dead, and every cell updates at the same moment, one generation at a time. Each cell looks only at its eight neighbors, the cells touching its sides and corners. Programmers shorten the rules to B3/S23: born with three, survives with two or three.
Spelled out, the four rules are short. A live cell with fewer than two live neighbors dies, as if from loneliness. A live cell with two or three live neighbors lives on. A live cell with more than three live neighbors dies, as if from overcrowding. A dead cell with exactly three live neighbors becomes alive. Apply all four to every cell at once, and the next generation appears.
Those rules produce a zoo of shapes that turn up again and again. These are the classic Game of Life patterns, and the first five appear all the time on a random board like this one:
- Block: a 2 by 2 square. Every cell has exactly three neighbors, so it never changes. It is the most common still life.
- Beehive: six cells in a stretched hexagon, another still life that sits unchanged forever.
- Blinker: three cells in a row that flip between horizontal and vertical every generation, the simplest oscillator.
- Toad: two offset rows of three cells that pulse in and out, repeating every two generations.
- Glider: five cells that rebuild themselves one cell further along a diagonal every four generations, the smallest spaceship.
- Lightweight spaceship: a nine-cell ship that travels in a straight line rather than diagonally.
- R-pentomino: just five cells that churn for 1,103 generations before they finally settle.
- Glider gun: a machine that fires a new glider every 30 generations, which proved that a finite pattern can grow without limit.
