Algorithms

Conway's Game of Life

A cellular automaton on a grid. Each cell lives or dies based on its eight neighbors. Draw cells, run the simulation, and watch patterns emerge.

5 minLevel 1/3The interactive stage stays ad-free.
Generation0Alive cells13Grid60 × 36

Click cells to draw. Each generation updates every cell at once using the four Game of Life rules. Try running the glider in the top-left; it should move diagonally across the grid.

What you are seeing

1

A live cell with two or three live neighbors survives. Otherwise it dies.

2

A dead cell with exactly three live neighbors becomes alive.

3

All cells update simultaneously. Small local rules produce surprisingly complex global behavior.

Why it matters

The Game of Life is a classic example of emergence and a gateway to complexity science, artificial life, and cellular computing.

Complexity & details

Time per generation: O(rows × columns). Space: O(rows × columns).

Frequently asked questions

Are the rules deterministic?+

Yes. With the same starting grid and rule set, every run produces exactly the same sequence of generations.

What is a glider?+

A small pattern that moves diagonally across the grid, returning to its original shape every four generations. Try drawing one.