Cellular Automata

Arrow keys move the cursor, Enter turns the cell under it on or off, Shift with an arrow key pans.

Pattern library

Choosing a pattern

Pattern names, periods and speeds follow LifeWiki.

Neighborhoods and rules

Each cell on the board is either alive or dead. Its neighborhood is the eight cells touching it, along the sides and at the corners. At every generation all cells change at once, and each one looks only at how many of its eight neighbors are alive. A rule lists the counts that bring a dead cell to life and the counts that keep a live cell alive. All other cells are dead in the next generation.

In Conway's Game of Life, a dead cell with exactly three live neighbors is born, and a live cell with two or three live neighbors survives. A live cell with fewer than two or more than three dies. The first still lifes and oscillators were found by hand, following small patterns on graph paper, blackboards and Go boards.

B/S notation

A rule is written as B followed by the neighbor counts that cause a birth, then S followed by the counts that let a live cell survive. Life is B3/S23. HighLife, B36/S23, adds a birth on six neighbors. The same rule is sometimes written survival first, as 23/3, and the rule box accepts both.

A third number makes it a Generations rule with that many states. A live cell that fails to survive does not vanish; it passes through dying states, one per generation, before the cell is empty again. Dying cells do not count as live neighbors, and nothing can be born on them. Brian's Brain, B2/S/3, has one dying state, drawn here as a white stone.

Still lifes, oscillators and spaceships

A still life never changes. An oscillator returns to its starting shape after a fixed number of generations, called its period. A spaceship returns to its shape in a new place. Speeds are written as fractions of c, one cell per generation: a glider moves one cell diagonally every four generations, so its speed is c/4. A gun is a pattern that keeps firing spaceships, and a puffer travels like a spaceship but leaves debris behind. A methuselah is a small pattern that takes a long time to settle.

Simple rules, complex behavior

Life's rule fits in two sentences, yet the five cells of the R-pentomino keep changing for 1103 generations before they settle. Gliders, guns and the ways they collide can be arranged into logic gates and memory, and from those into a working computer, so Life is Turing complete. The halting problem applies to Life as well: no general method can tell in advance whether a program running inside Life will ever stop.

Sources: Conway's Game of Life and Life-like cellular automaton on Wikipedia; List of Life-like rules and Generations on LifeWiki.

Keyboard

Space
Run or pause
N
Next generation
B Ctrl+Z
Back one step, including drawing and fills
Backspace
Reset to the generation where the run started
D E M
Draw, erase or move tool
+ - F
Zoom in, zoom out, fit the pattern
← ↑ → ↓
Move the cursor when the board has focus; with Shift, pan
Enter
Turn the cell under the cursor on or off, or place a pattern
R V Esc
Rotate, flip or stop placing a pattern