What is Conway's Game of Life?
Conway's Game of Life is a cellular automaton created by mathematician John Conway in 1970. Despite having zero players and no winning condition, it has fascinated scientists, programmers, and hobbyists for decades.
The concept is beautifully simple: a grid of cells, each either alive or dead, evolves generation by generation according to just four rules based on how many neighbors each cell has. From these simple rules, incredibly complex and surprising behaviors emerge — moving spaceships, oscillating patterns, and even structures that produce infinite streams of smaller patterns.
The Four Rules
Every generation, each cell checks its eight neighbors and follows these fundamental rules:
Underpopulation
Survival
Overpopulation
Reproduction
How to Use
Drawing Cells
Click on any empty cell to make it alive, or click an alive cell to erase it. Click and drag to draw or erase multiple cells at once. On mobile, use your finger to tap and drag.
Running the Simulation
Press the Play button or hit Space on your keyboard to start the simulation. Cells will evolve generation by generation following Conway's four rules. Press again to pause. Use the Step button (or press N) to advance one generation at a time.
Placing Patterns
Click the Patterns dropdown to choose from 8 classic patterns. After selecting, move your cursor over the grid to see a preview, then click to place the pattern. Press Esc to cancel.
Controls
Speed Control
Adjust simulation speed from 1 to 60 generations per second using the slider
Random Fill
Fill the grid randomly with approximately 30% alive cells for instant complexity
Wrap Edges
Enable toroidal grid where cells on one edge connect to the opposite edge
Color Themes
Switch between Classic, Matrix, Neon, and Heatmap visual styles
Clear Grid
Reset the entire grid to start fresh with a new pattern
Keyboard Shortcuts
| Key | Action | Description |
|---|---|---|
| Space | Play / Pause | Toggle simulation running state |
| N | Next Step | Advance one generation (when paused) |
| C | Clear | Reset entire grid to empty state |
| R | Randomize | Fill grid with random pattern |
| Esc | Cancel | Exit pattern placement mode |
Features
Classic Pattern Library
Explore 8 iconic patterns from Game of Life history, each with unique behaviors and mathematical properties:
Spaceships
- Glider — The simplest spaceship, travels diagonally across the grid in a 4-generation cycle
- LWSS (Lightweight Spaceship) — A larger spaceship that moves horizontally, completing its cycle in 4 generations
Oscillators
- Blinker — A period-2 oscillator, the most common small pattern that alternates between horizontal and vertical
- Toad — A period-2 oscillator that shifts back and forth in a compact formation
- Beacon — A period-2 oscillator made of two blocks that blink on and off
- Pulsar — A beautiful period-3 oscillator with perfect symmetry, one of the most visually striking patterns
- Pentadecathlon — A period-15 oscillator, one of the longest-lived small patterns with complex behavior
Infinite Growth
- Gosper Glider Gun — The first known pattern that grows indefinitely, producing a stream of gliders every 30 generations. This groundbreaking discovery proved that infinite growth is possible in Conway's Game of Life.
Color Themes
Personalize the visual experience with four distinct themes designed to enhance pattern visibility:
Classic
Matrix
Neon
Heatmap
Wrap Edges (Toroidal Grid)
When enabled, the grid wraps around — cells leaving the right edge appear on the left, and cells leaving the bottom appear at the top. This creates an infinite-feeling world where patterns like Gliders never disappear.
Finite Grid
- Patterns disappear at edges
- Edge cells have fewer neighbors
- Limited exploration space
Toroidal Grid
- Patterns loop continuously
- All cells have 8 neighbors
- Infinite-feeling world
Responsive and Touch-Friendly
Desktop Optimized
Full keyboard shortcuts and mouse controls for precise pattern creation
- Click and drag drawing
- Keyboard shortcuts
- Large grid display
Mobile Ready
Touch gestures and responsive layout adapt perfectly to any screen size
- Touch-friendly controls
- Auto-resizing grid
- Adaptive control bar
Frequently Asked Questions
Why do all my cells die?
If your pattern disappears quickly, it likely doesn't have enough structure to sustain itself. Try placing a preset pattern like Glider or Pulsar — these are designed to be stable or oscillate. You can also try Random fill, which creates enough density for interesting long-term behavior.
What does "Wrap Edges" do?
When Wrap Edges is on, the grid behaves like a torus — the left and right edges are connected, and the top and bottom edges are connected. Patterns that move off one side reappear on the other. When off, cells at the edges have fewer neighbors and behave differently.
What is the Heatmap theme?
In Heatmap mode, cells are colored based on how long they've been alive. Newly born cells appear blue, and as they survive more generations, they gradually shift toward red. This makes it easy to spot stable structures (red) versus active areas (blue).
Why does the simulation pause automatically?
The simulation auto-pauses when the population reaches zero — meaning all cells have died. This prevents unnecessary processing on an empty grid and signals that your pattern has reached its end state.
Can I use this on my phone?
Yes! The app is fully touch-compatible. Tap to toggle cells, drag to draw, and use the control bar to access all features. The grid automatically resizes to fit your screen.
- Touch-optimized controls
- Responsive grid sizing
- Mobile-friendly interface
- All features accessible on mobile
Is my data stored anywhere?
No. Everything runs locally in your browser. No data is sent to any server, and nothing is saved between sessions.
No comments yet. Be the first to comment!