Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
Conway's Game of Life

Conway's Game of Life

Interactive cellular automaton — draw patterns on a grid and watch them evolve by Conway's four simple rules.

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.

Interactive Experience: This simulator lets you draw your own patterns, explore famous configurations, and watch them come to life in real time.

The Four Rules

Every generation, each cell checks its eight neighbors and follows these fundamental rules:

Underpopulation

A living cell with fewer than 2 neighbors dies

Survival

A living cell with 2 or 3 neighbors lives on

Overpopulation

A living cell with more than 3 neighbors dies

Reproduction

A dead cell with exactly 3 neighbors becomes alive
Key Principle: All cells update simultaneously, creating a new generation in one step.

How to Use

1

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.

2

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.

3

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

Clean indigo cells on a dark background — timeless and easy on the eyes

Matrix

Green cells reminiscent of The Matrix — perfect for that cyberpunk aesthetic

Neon

Rainbow coloring based on cell position — vibrant and visually dynamic

Heatmap

Cells change color based on age: new cells appear blue, long-lived cells turn red

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.

Wrap Off

Finite Grid

  • Patterns disappear at edges
  • Edge cells have fewer neighbors
  • Limited exploration space
Wrap On

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.

Pro Tip: Stable patterns typically require a balance between density and spacing. Too sparse and cells die from underpopulation; too dense and they die from overcrowding.

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).

Visual Insight: Heatmap mode helps you identify which parts of your pattern are stable and which are constantly changing, making it easier to understand pattern behavior.

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.

Privacy First: Your patterns and interactions remain completely private on your device. The simulator requires no internet connection after initial load.
Rules

Each cell is alive or dead. Every generation, cells evolve by these rules:

Alive cell with < 2 neighbors dies
Alive cell with 2–3 neighbors survives
Alive cell with > 3 neighbors dies
Dead cell with exactly 3 neighbors becomes alive
Interaction
Draw / Erase cells Click / Drag
Place pattern Select → Click
Keyboard Shortcuts
Play / Pause Space
Next step N
Clear grid C
Randomize R
Cancel pattern Esc
Controls
Speed Slider
Wrap edges Toggle
Color theme Dropdown
Gen: 0 Pop: 0
Click or drag on the grid to draw cells, click alive cells to erase them
Press Space to play/pause, N to step one generation
Select a pattern from the dropdown, then click anywhere to place it
Try the Heatmap theme — older cells turn red, new cells are blue
Enable Wrap Edges so patterns loop around the grid edges
Runs entirely in your browser — no data sent to any server
Want to learn more? Read documentation →
1/7
Can't find it? Build your own tool with AI
Start typing to search...
Searching...
No results found
Try searching with different keywords