Conway’s Game of Life
This Conway’s Game of Life simulator runs on a 300 × 300 cellular grid. You can toggle cells by hand or stamp classic still lifes, oscillators, spaceships, and a Gosper glider gun. Let the generations run continuously or move through them one step at a time. The canvas also supports panning, zoom, speed control, random starting states, and light or dark themes.
Press Play to watch the glider move and the blinker flip.
What it does
- Toggle individual cells or stamp reusable patterns including blocks, beehives, blinkers, pulsars, gliders, lightweight spaceships, and a Gosper glider gun.
- Run continuously, pause, or step forward and backward through the recorded simulation history.
- Pan across a 300 × 300 toroidal grid and zoom from a broad overview to individual cells.
- Change simulation speed, generate a random starting state, clear the board, and switch between light and dark themes.
- Rotate pattern brushes in 90-degree increments before placing them.
How to use Conway’s Game of Life
-
Create a starting pattern
The grid starts with a glider, a blinker, and a block. Add or remove cells with the Single cell brush, or pick a pattern from the brush menu.
-
Place and orient cells
Tap or click the grid to place the selected cell or pattern. Use Rotate to change the orientation of a pattern.
-
Navigate the grid
Drag with a mouse to pan, or turn on Pan before dragging on touch screens. Use Zoom to change the size of the cells.
-
Run the simulation
Press Play to run the simulation. Use Step to advance or Previous to revisit a recorded state.
-
Reset or experiment
Press Restart to restore the opening patterns, Randomize to seed the grid, or Clear to start from an empty grid.
Formats and limits
Inputs
- Touch, pointer, or keyboard input that toggles a cell or places a pattern.
- A brush selection and optional 90-degree rotation.
- Playback speed, zoom, pan position, theme, and playback controls.
- Optional random population generated in the browser.
Outputs
- A live Canvas 2D simulation of successive Game of Life generations.
- A current generation counter and an in-memory history that supports stepping backward while paused.
- No image, pattern, or state export is currently provided.
Compatibility
- Supports touch, pointer, and keyboard controls.
- Requires Canvas 2D and JavaScript; the simulation runs entirely on the page.
Known limits
- The world has a fixed 300 × 300 grid whose opposite edges wrap around, so it is not an infinite plane.
- History is kept only in memory and is capped at 500 recorded states.
- Patterns cannot currently be imported, saved, shared, or exported as files.
- Simulation cost grows with the fixed full-grid update, regardless of how many cells are alive.
Where your data goes
- Cell states, history, settings, and random patterns remain in page memory and are not uploaded by the simulator.
- The tool does not use local storage or IndexedDB, so refreshing or leaving the page clears the current world.
- No account or personal input is required.
How this Game of Life simulation evolves
For every generation, the simulator counts the eight neighbours around each cell. A living cell survives with two or three neighbours. A dead cell is born with exactly three. Coordinates wrap across all four edges, so the finite grid behaves like a torus. The React interface keeps as many as 500 snapshots for backward stepping. Canvas 2D redraws the visible cells, grid, and placement preview when the board or view changes. Playback pauses when the workbench leaves the viewport or its tab is hidden.
Questions about Conway’s Game of Life
What are Conway’s Game of Life rules?
A live cell survives when it has two or three live neighbours and dies otherwise. A dead cell becomes alive when it has exactly three live neighbours. Every cell updates from the same previous generation.
Does the grid have an edge?
The displayed world is finite, but the coordinates wrap. Move past the left edge and you reach the right; move past the top and you reach the bottom. Patterns can interact across those opposite boundaries.
Can I save or export a pattern?
Not in the current simulator. The grid and its history exist only for the current page session and are cleared when the page reloads.
Which keyboard controls are available?
Focus the grid and use the arrow keys to move the cursor. Enter or Space places the selected brush, and Q or E rotates a pattern by 90 degrees. Tab moves to the playback controls.