Skip to content

🫀 Game of life

JavaScriptThree.js
Source

Conway’s Game of Life illustrates the same principle as the Mandelbrot set, namely that complex structures can emerge from an astonishingly small and simple set of rules.

🎯 Illustration of TiledPlane view in Helion
🐍 A VPython demo is available as well, see game_of_life.py


This visualization shows Conway’s Game of Life, a simple mathematical model where complex behavior emerges from very simple rules.

The space is divided into a grid of cells. Each cell is either:

  • alive (green pixel), or
  • dead (black pixel).

At each time step, every cell updates simultaneously based on its eight neighbors:

  1. A living cell survives if it has 2 or 3 living neighbors
  2. A dead cell becomes alive if it has exactly 3 living neighbors
  3. All other cells die or remain dead

These rules can be written as:

alivet+1(x,y){1if n=31if n=2 and alivet=10otherwise\text{alive}_{t+1}(x,y) \begin{cases} 1 & \text{if } n=3 \\ 1 & \text{if } n=2 \text{ and alive}_t=1 \\ 0 & \text{otherwise} \end{cases}
  • Stable structures
  • Oscillating patterns
  • Moving objects (gliders)
  • Chaotic growth from simple beginnings

No randomness is added after the start — all complexity emerges from the rules alone.


The Game of Life is a classic example of:

  • emergent behavior
  • cellular automata
  • how local rules can produce global structure

It appears in physics, biology, computer science, and artificial life research.