Game of Life Simulator

Run Conway's Game of Life in your browser. Load a Gosper glider gun, pulsar, R-pentomino or acorn, draw your own cells, and control speed and grid size.

Game of Life

Live controls

12
5
0.3
145

Knobs patch the running animation live. A few (marked in the code as baked-in values like particle counts) restart the preview.

Conway's B3/S23 on a wrapping grid. Drag to draw your own cells.

Your code runs in a sandboxed frame with no access to this page, and it is never sent to a server. three.js demos load the library from jsDelivr; the rest need nothing but the browser.

Pick an animation

All 40 animations →

Canvas 2D
three.js
WebGL
CSS / DOM
Advertisement

The rule in one line

Conway's Game of Life runs on B3/S23. A dead cell with exactly three live neighbours is born. A live cell with two or three live neighbours survives. Every other cell dies, from loneliness below two or overcrowding above three.

That is the entire specification. Everything else - gliders, oscillators, guns, and patterns that run for thousands of generations before settling - is a consequence of those two clauses applied to every cell at once.

Patterns worth loading

Gosper glider gun was the first known pattern to grow without bound, producing a new glider every thirty generations. Its discovery in 1970 answered an open question and won a fifty dollar prize.

Pulsar is a period-three oscillator, one of the most common naturally occurring patterns in random soups.

R-pentomino is five cells that take over a thousand generations to stabilise, scattering gliders as it goes. It is the standard illustration that a trivial starting state can have an outcome nobody can work out except by running it.

Acorn is seven cells that run for more than five thousand generations. If you want to see why the Game of Life is described as unpredictable rather than merely complicated, start here and leave it running.

Frequently Asked Questions

What rules does this use?+

Conway's original B3/S23: a dead cell with exactly three live neighbours is born, and a live cell survives with two or three live neighbours. Everything else dies.

Which starting patterns are included?+

A random soup with adjustable density, the Gosper glider gun, a pulsar, the R-pentomino and the acorn. The last two are famous for producing very long-lived chaotic growth from a handful of cells.

Can I draw my own cells?+

Yes. Drag on the grid to toggle cells while the simulation runs or is paused.

Does the grid wrap around?+

Yes. The edges are joined, so a glider leaving the right side reappears on the left. That keeps long-running patterns from dying at a boundary.

Why does the R-pentomino run for so long?+

Five cells that take more than a thousand generations to stabilise. It is the standard demonstration that a trivial starting position can have an outcome nobody can predict without simply running it.

Is the Game of Life actually a game?+

No. It is a zero-player cellular automaton: you set the initial state and the rules do the rest. It is Turing complete, which means any computation can in principle be built out of its patterns.

This tool is provided for informational and educational purposes only. All processing happens in your browser — no data is sent to or stored on our servers. While we strive for accuracy, we make no warranties about the completeness or reliability of results.