Simulation & measurement
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.
What it does
Keep the Toggle Cell brush to draw one cell at a time. For a larger start, pick a still life, oscillator, spaceship, or gun from the brush menu.
Click the grid to place the selected cell or pattern. Press Q or E to rotate a pattern brush before stamping it.
Drag to pan, use the mouse wheel or Zoom control to change scale, and position the pattern you want to observe.
Press Play or the space bar for continuous evolution, or use the arrow controls and arrow keys to inspect one generation at a time.
Adjust speed, switch theme, create a random population, or clear the grid and begin a new experiment.
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 draws the cells, placement preview, grid, and slowly moving background gradient.
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.
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.
Not in the current simulator. The grid and its history exist only for the current page session and are cleared when the page reloads.
Space toggles play and pause, Left and Right step through generations while paused, and Q or E rotates the selected pattern brush by 90 degrees.