Conway's Game of Life

Cellular automaton on a toroidal grid. Click cells to draw, then watch the rules play out.

Generation 0Live cells 580 × 50 (wraps)
10 gen/s
Patterns
Prompt used
Build Conway's Game of Life in React with:
- 80x50 toroidal grid (wrap around the edges) rendered to <canvas>
- Run/Pause/Step/Clear/Random + speed slider (1-30 gen/s)
- Click + drag to paint or erase cells while paused
- Live count + generation counter
- Pattern presets: Glider, R-pentomino, Acorn, Pulsar, Gosper Glider Gun
- Use a Uint8Array for the grid (fast clone + iteration; pure cellular automaton, no libs)
- Animation driven by requestAnimationFrame with a delta-accumulator so the speed slider takes effect without restarting the loop
- Dark theme, purple accents