Cellular automaton lab

Game of Life

Conway's Game of Life: every cell lives or dies by counting its eight neighbours. From those tiny rules come gliders that travel, guns that shoot, and patterns that grow for thousands of generations. Draw your own, place famous patterns, change the rules and share them as RLE.

GENERATION0
POPULATION0
RULEB3/S23

Population

live cells births deaths
BirthA dead cell with exactly 3 live neighbours comes alive.
SurvivalA live cell with 2 or 3 live neighbours stays alive.
DeathOtherwise it dies — of loneliness or overcrowding.

Space play/pause · N step · R rotate pattern · scroll to zoom · F full screen

How the Game of Life works
  1. The world is a grid of cells, each alive or dead. Every generation, all cells update at the same time.
  2. Each cell counts its 8 neighbours. With Conway's rule (B3/S23) a dead cell with 3 live neighbours is born, a live cell with 2 or 3 survives, and every other cell dies or stays dead.
  3. Still lifes never change, oscillators repeat, spaceships move, guns emit spaceships and methuselahs evolve for a long time before settling. The simulator tells you when the whole grid starts repeating.

Invented by mathematician John Conway in 1970. Everything runs in your browser.

Using Game of Life

Conway's Game of Life: a grid of cells that live or die by simple neighbour rules. Draw cells, place famous patterns like gliders, spaceships and guns, change the rules, and watch complex life-like behaviour appear.

  1. Draw live cells with the mouse (right-click or Shift to erase), or press Random.
  2. Pick a pattern such as Glider, Gosper glider gun or Pulsar and click to place it. R rotates it.
  3. Press Play, change the speed, or step one generation at a time with N.
  4. Choose other rules — HighLife, Seeds, Day & Night, Maze — or type your own in B/S notation.
  5. Import or export patterns in the standard RLE format and download population data as CSV.

Example

Glider: five cells that move diagonally forever, one cell every four generations.
Gosper glider gun: a pattern that shoots a new glider every 30 generations — the population grows without limit.

Questions & answers

What are the rules of the Game of Life?

A dead cell with exactly 3 live neighbours is born. A live cell with 2 or 3 live neighbours survives; otherwise it dies. In rule notation this is B3/S23.

What is a glider?

A small pattern that repeats its shape every 4 generations while moving one cell diagonally. Gliders can carry information, which makes Life Turing-complete.

What is RLE?

Run Length Encoded text is the standard way to share Life patterns (used by LifeWiki and Golly). Paste RLE to import a pattern, or export yours.

What do other rules do?

HighLife (B36/S23) has a replicator, Seeds (B2/S) explodes, Day & Night (B3678/S34678) treats live and dead symmetrically, Maze (B3/S12345) grows corridors.

Does the grid wrap around?

By default the edges wrap (a torus), so patterns leaving one side return on the other. You can switch to fixed dead edges.

Why does the pattern stop changing?

Many patterns settle into still lifes and oscillators. The simulator detects when the whole grid repeats and tells you the period.

Is my pattern uploaded?

No. Everything runs in your browser; RLE files are read locally.

Help improve this tool

Report a problem or suggest an improvement

Describe the issue without pasting private tool input. Feedback goes to our admin inbox.

Find another tool · Read practical guides