The automaton in 3-D
Population and behaviour
Behaviour is a heuristic. A repeat of the whole state within the last 500 generations means the pattern is fixed or periodic; otherwise the trend decides between growing, shrinking and still changing. Hover the chart to read any generation.
The rule, explained
Slice & draw
Learn: how cellular automata work
What is a cellular automaton?
A grid of cells, each in some state. At every tick of a clock, every cell looks at its neighbourhood and applies the same rule to decide its next state.
Nothing is global: no cell knows the overall shape. The shapes you see are emergent, built only from local interactions.
The seven ingredients
- Lattice: the grid (a row, a square, a cube). Space settings.
- States: on/off, several colours, or a real number (Continuous mode).
- Neighbourhood: Moore, von Neumann, a range r, or a smooth kernel.
- Rule: how the neighbourhood decides the next state.
- Update scheme: all cells at once, or a random fraction p.
- Boundary: wrapped edges (a torus) or a fixed empty border.
- Initial state: a seed, random noise, or your own drawing.
Reading a rule string
B lists the live-neighbour counts at which an empty cell is born; S lists the counts at which a live cell survives. Conway's Life is B3/S23.
C is the number of states. With C > 2, a cell that fails to survive decays through C − 2 dying states before it is empty again. Dying cells don't count as live neighbours. M and VN name the neighbourhood.
Neighbourhoods
Moore: every cell that touches the centre, even at a corner (8 in 2-D, 26 in 3-D).
von Neumann: only the cells that share a face (4 in 2-D, 6 in 3-D). Growth then spreads as a diamond or octahedron, because distance is counted as |x| + |y| + |z|.
Time as a dimension
In 2-D + time, each generation is a layer stacked on the one before. A still life becomes a straight column, an oscillator a braided column and a glider a slanted tube.
In 1-D + time, each row is a generation, as in Wolfram's space-time diagrams. Wrap the row onto a cylinder to see that the edges really are joined.
Four classes of behaviour
- Uniform: everything dies or fills (Class 1).
- Periodic: settles into still or repeating structures (Class 2).
- Chaotic: random-looking forever (Class 3, e.g. Rule 30).
- Complex: localised structures that move and interact (Class 4, e.g. Rule 110 and Life).
This scheme, proposed by Stephen Wolfram, is descriptive, not exact. Fig. 2 makes a quick guess for the current run.
The edge of chaos: Langton's λ
λ is the fraction of all neighbourhood patterns that produce a live cell. Near 0, everything dies (Class 1); near 0.5, behaviour is chaotic (Class 3).
Complex, computation-like behaviour tends to sit in between, at the “edge of chaos”: Conway's Life has λ ≈ 0.273. Fig. 3 shows λ for the current rule.
Cyclic and excitable automata
In a cyclic automaton the κ colours form a loop. A cell advances to the next colour only when at least θ of its neighbours (within range r) already have it, so colours chase each other.
From random noise, debris gives way to rotating spirals. The Greenberg–Hastings variant models excitable media (heart muscle, nerve tissue, the BZ reaction): a resting cell fires when stimulated, then must recover.
Continuous automata
States become real numbers between 0 and 1. In Lenia each cell takes a weighted average over a smooth ring of neighbours (the kernel), passes it through a growth function, and changes by a small time step dt. Lifelike “creatures” such as Orbium glide across the grid.
Reaction–diffusion (Gray–Scott) is another continuous automaton: two chemicals spread and react, making spots, stripes and dividing cells, as Turing proposed for animal markings.
Update schemes
The classic rule is synchronous: every cell reads the old grid, then all change at once. Set the update probability p below 1 and only a random fraction of cells updates each step (stochastic, or asynchronous, updating).
Many famous patterns, including oscillators, gliders and perfect symmetry, depend on synchrony and fall apart when p < 1.
Reversibility and information
Most rules forget: different grids can lead to the same next grid, so the past cannot be recovered, and some grids (“Gardens of Eden”) have no past at all.
A second-order rule makes any rule reversible: new = rule(current) XOR previous. In 1-D mode, tick Reversible, run, then press Reverse to watch history unwind.
Further concepts (explained, not simulated)
Other lattices: hexagonal and triangular grids, or cells on any network. Computation: Rule 110 and Life are Turing-complete, and Wireworld builds logic gates from 4 states.
Self-reproduction: von Neumann's 29-state constructor and Langton's loops copy themselves. Probabilistic rules model forest fires and epidemics.
Using the Explorer
- Space play or pause · → one step · R restart · F fit view
- Click a cell in Fig. 1 to see its neighbour count and what the rule does with it.
- Draw your own seed in Fig. 4, then press Use as seed so that Restart returns to it.
- Copy link saves the rule and settings in the URL so you can share a discovery.
Experiments to try
Further reading
- J. von Neumann, Theory of Self-Reproducing Automata, ed. A. W. Burks. University of Illinois Press, 1966.
- M. Gardner, “Mathematical Games: The fantastic combinations of John Conway's new solitaire game ‘life’”, Scientific American 223(4), 120–123, 1970.
- S. Wolfram, “Statistical mechanics of cellular automata”, Reviews of Modern Physics 55, 601–644, 1983.
- C. Bays, “Candidates for the Game of Life in three dimensions”, Complex Systems 1, 373–400, 1987.
- S. Wolfram, A New Kind of Science. Wolfram Media, 2002.
- M. Cook, “Universality in elementary cellular automata”, Complex Systems 15, 1–40, 2004.
- A. M. Turing, “The chemical basis of morphogenesis”, Philosophical Transactions of the Royal Society B 237, 37–72, 1952.
- J. M. Greenberg and S. P. Hastings, “Spatial patterns for discrete models of diffusion in excitable media”, SIAM Journal on Applied Mathematics 34(3), 515–523, 1978.
- T. Toffoli and N. Margolus, Cellular Automata Machines. MIT Press, 1987.
- C. G. Langton, “Computation at the edge of chaos: phase transitions and emergent computation”, Physica D 42, 12–37, 1990.
- R. Fisch, J. Gravner and D. Griffeath, “Threshold-range scaling of excitable cellular automata”, Statistics and Computing 1, 23–39, 1991.
- J. E. Pearson, “Complex patterns in a simple system”, Science 261, 189–192, 1993.
- S. Rafler, “Generalization of Conway's ‘Game of Life’ to a continuous domain: SmoothLife”, arXiv:1111.1567, 2011.
- B. W.-C. Chan, “Lenia: Biology of Artificial Life”, Complex Systems 28(3), 251–286, 2019.