🧪 Cellular Automata
Explore 6 cellular automata interactively: Wolfram 1D elementary rules (0-255), Conway's Game of Life, Brian's Brain, Langton's Ant, Seeds, and Highlife. Ideal for GCSE and A-level computer science and maths.
What Are Cellular Automata?
A cellular automaton (CA) is a discrete model of computation consisting of a grid of cells, each in one of a finite set of states. At each generation every cell simultaneously transitions to a new state based on a fixed local rule � typically depending only on the cell and its immediate neighbours. Despite this simplicity, CAs produce breathtaking complexity.
🔢 Wolfram 1D Rules
Stephen Wolfram systematically explored all 256 elementary CA rules in the 1980s. Each rule is encoded as an 8-bit integer describing the next state for each of the 8 possible 3-cell neighbourhoods:
Pattern: 111 110 101 100 011 010 001 000
Rule 110: 0 1 1 0 1 1 1 0
? binary 01101110 = 11010
Wolfram classified rules into four classes: uniform, periodic/striped, chaotic/random, and complex. Rule 110 � in class IV � is the only elementary rule proven to be Turing-complete.
? Conway's Game of Life
John Conway's 1970 Life ruleset (B3/S23) uses a 2D Moore neighbourhood:
- Birth: A dead cell with exactly 3 live neighbours becomes alive
- Survival: A live cell with 2 or 3 live neighbours survives
- Death: All other live cells die (underpopulation or overcrowding)
The emergent menagerie includes still lifes, oscillators, gliders, spaceships, guns, and even self-replicating patterns. Life is also Turing-complete.
🐜 Langton's Ant
Christopher Langton's 1986 ant follows two rules on a binary grid:
- On a white cell: turn right 90�, flip cell to black, move forward
- On a black cell: turn left 90�, flip cell to white, move forward
After ~10,000 highly irregular steps, the ant spontaneously enters a regular mode and builds a diagonal "highway" that repeats every 104 steps � indefinitely. This abrupt transition from chaos to order is one of the most striking demonstrations of self-organisation.
🧠 Brian's Brain
Brian Silverman's three-state rule (off / alive / dying) creates a perpetual motion machine: a cell is born if it has exactly 2 live neighbours; a live cell always becomes "dying"; a dying cell always becomes dead. The result is a sea of fast-moving gliders remarkably reminiscent of a neural firing pattern � hence the name.
Seeds (B2/S�) births on 2 neighbours but nothing survives � producing explosive growth fronts. Highlife (B36/S23) is a superset of Life that supports a self-replicating pattern called the replicator.
Wolfram's Four Classes
Wolfram's 2002 book A New Kind of Science proposed that all cellular automata � and indeed large swaths of physics � can be classified by the behaviour they produce:
| Class | Behaviour | Example Rules | Analogy |
|---|---|---|---|
| I | Converges to uniform state | 0, 255, 32 | Fixed point attractors |
| II | Simple periodic / nested patterns | 4, 108, 90 | Limit cycles |
| III | Appears random, chaotic | 30, 45, 86 | Strange attractors |
| IV | Complex, localised structures | 110, Life | Edge of chaos, computation |
Emergence and Computation
CAs demonstrate one of the most profound ideas in science: that simple, local rules with no global coordination can produce arbitrarily complex global behaviour. The implications span physics (lattice-gas fluid dynamics, quantum cellular automata), biology (morphogenesis, neural models), chemistry (reaction-diffusion systems), and computer science (parallel computation, cryptographic pseudorandom generators based on Rule 30).
The question of which CAs are capable of universal computation � the computational universality problem � remains an active area of research. Proven universal CAs include Rule 110, Conway's Life, and several variants. The hunt for the simplest universal CA continues.
Related Simulations
📖 Recommended Reading
🔒 Premium Feature
Unlock HD PNG/GIF export, custom rule editor, save/load configurations, and all 32 simulations with MySimulator Premium.
This simulation explores cellular automata, demonstrating the behavior of classic rules like Conway's Game of Life and Turing patterns. It illustrates how simple local interactions can lead to complex global behaviors, a fundamental concept in computational science.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install