The Game of Life is a cellular automaton created by mathematician John Conway. A cellular automaton is a type of simulation. In the Game of Life, there is a grid of cells in which each cell is either dead or alive. In this example, black squares represent living cells and white squares represent dead cells. As the simulation runs, cells switch between being dead and alive based on a set of rules:
- Any live cell with fewer than two live neighbours dies.
- Any live cell with more than three live neighbours dies.
- Any live cell with two or three live neighbours lives, unchanged, to the next generation.
- Any dead cell with exactly three live neighbours will come to life.
These rules generate complex interactions. Click the canvas to start the simulation with randomized cells. Clicking the canvas again will restart it.
Related Examples

No alt text
Non-Orthogonal Reflection
Simulate a ball bouncing on a slanted surface.

No alt text
Soft Body
Simulate the physics of a soft body accelerating toward the mouse.

No alt text
Forces
Simulate forces on multiple bodies as they move through liquid.

No alt text
Smoke Particles
Simulate smoke with a particle system.

No alt text
Game of Life
Recreate John Conway's cellular automaton.

No alt text
Mandelbrot Set
Visualize a mathematical set that produces fractal structures.