SimuVeda/ Mathematics

Mathematics · Simulator 054

Cellular Automata

Each cell on the grid is alive or dead. Every tick, each cell counts its eight neighbours and follows a simple rule to live, die or be born. Draw patterns, press Play, and watch gliders crawl, oscillators blink and chaos settle, all from a rule that fits on one line.

CollegeBeyond the syllabus: complex systems

Experiments 0 of 0 Challenge not tried

How the model works

Conway's Game of Life uses the rule B3/S23:

  • A dead cell with exactly 3 live neighbours is born.
  • A live cell with 2 or 3 live neighbours survives; otherwise it dies of isolation or crowding.

From these local rules, global structures emerge. Still lifes never change, oscillators repeat (the blinker has period 2), and spaceships such as the glider move across the grid (the glider travels one cell diagonally every 4 generations). Life is even Turing-complete: in principle it can compute anything a computer can.

Change the rule to explore other “life-like” automata: HighLife (B36/S23) has a self-replicator, Seeds (B2/S) explodes, and Day & Night (B3678/S34678) treats live and dead symmetrically. The grid wraps around at the edges (a torus).

Finite wrapped grid, so patterns that would grow forever eventually interact with themselves.

Guided experiments

  1. Glider. Place a glider and run. Prediction: the same 5-cell shape reappears one cell diagonally further every 4 generations.
  2. R-pentomino. 5 cells in an odd shape. Prediction: hundreds of generations of chaos before settling, throwing off gliders along the way.
  3. Random soup, different rules. 30% random fill under Life, then Seeds. Prediction: Life settles into scattered still lifes and blinkers; Seeds explodes into constant noise.

Challenge

Under Life (B3/S23), what happens to a 2×2 block? To a straight line of 3 cells? Predict before drawing them.

Reveal the explanation

The block is a still life: each live cell has exactly 3 live neighbours (survives), and no dead cell has exactly 3. The line of 3 is a blinker: the ends die, and the two cells beside the centre are born, so it flips between horizontal and vertical with period 2.

References

  • Gardner, M. (1970), “The fantastic combinations of John Conway's new solitaire game ‘life’”, Scientific American 223: 120–123.
  • LifeWiki, conwaylife.com (pattern catalogue).

Related simulators

Worked example

Counting neighbours by hand under Life (B3/S23): three live cells in an L shape at (0, 0), (1, 0) and (0, 1).

Live cells: each touches the other two, so each has 2 live neighbours and survives (S2).

Dead cells: the corner (1, 1) touches all three, so it has exactly 3 and is born (B3). No other dead cell has 3.

Result: after one generation the L becomes a 2 × 2 block, which then never changes.

A glider repeats its shape every 4 generations, one cell further diagonally, so after 100 generations it has travelled 25 cells. On an unlimited grid the R-pentomino, only 5 cells, takes 1103 generations to settle and throws out 6 gliders on the way.

Draw the L shape and step one generation; then switch the rule to Seeds (B2/S), where no cell ever survives.

Common questions

What is Conway's Game of Life?

A grid of cells that are alive or dead. Each generation, a dead cell with exactly 3 live neighbours is born and a live cell with 2 or 3 survives; all others die or stay dead.

What does the rule notation B3/S23 mean?

B lists the neighbour counts that give birth to a dead cell and S the counts that let a live cell survive. HighLife is B36/S23, which adds birth on 6.

Can the Game of Life compute?

Yes. Gliders can carry signals and collide to make logic gates, so Life can in principle run any computer program. It is Turing complete.

Keyboard shortcuts

Space
Play or pause
S
Step
R
Reset
F
Full screen
?
Show this list