Conway's Game of Life

Conway's Game of Life is a cellular automaton where cells live, die or reproduce according to their eight neighbors.

Make a game like this with Claude Code

Claude Game Studio is a Claude Code plugin with 10 tested game starters and 123 3D models. $29 a year.

See the kit
Players
1
Works on phone
Yes
Length
Run as many generations as you like

How to play

  • Choose one of ten patterns, then press Play. Pause stops the clock; Step advances exactly one generation.
  • Choose Draw or Erase, then tap or drag across the grid. Drawing pauses the simulation. Zoom makes cells larger; Move pans the zoomed board.
  • Use the speed slider for 1 to 30 generations per second. Clear empties the board; Random fill starts a new arrangement with about 22% live cells.
  • With the grid focused, use arrow keys to move a cell cursor. Space toggles a cell; in Erase mode it clears the cell. All four edges wrap around.

Tips

  • Start with Blinker and press Step twice. Its three cells turn upright, then return to their starting row.
  • Choose Glider and take four steps. The five-cell shape returns one cell farther right and one cell down.
  • Load Gosper glider gun and count 30 steps. This starting phase has 36 cells; generation 30 has 41, including its first five-cell glider.

The four Game of Life rules

  1. A live cell with fewer than two live neighbors dies.
  2. A live cell with two or three live neighbors survives.
  3. A live cell with more than three live neighbors dies.
  4. A dead cell with exactly three live neighbors becomes alive.

Each generation reads the previous board, including the diagonal neighbors. All births and deaths happen together. These rules are written as B3/S23.

Ten patterns to try

Choose a name in the player to replace the board, then press Step to follow one change at a time.

Glider
A five-cell spaceship. After four generations it has moved one cell right and one down.
Blinker
Three cells switch between a row and a column. The cycle takes two generations.
Toad
Six cells in two offset rows open and close in a two-generation cycle.
Beacon
Two diagonal blocks lose and regain their nearest corners. The period is two.
Pulsar
A symmetric 48-cell starting shape expands and contracts, returning after three generations.
Lightweight spaceship
A nine-cell starting shape travels two cells sideways in four generations.
Gosper glider gun
The gun returns to its starting phase every 30 generations while sending out another glider.
R-pentomino
Five starting cells create a long sequence of changing shapes. Watch the population rather than expecting a quick repeat.
Diehard
Seven starting cells disappear at generation 130 when placed alone on this board.
Acorn
Seven cells grow into a long-lived expanding arrangement. On this wrapping board, returning descendants can collide.

Four experiments on this board

2
generations. The blinker returns to its starting row.
1, 1
cells moved. Four glider steps shift the shape right and down.
4
living cells. A two-by-two block stays fixed through 100 tested steps.
41
cells at step 30. The gun starts with 36 and adds its first five-cell glider.

Claude Game Studio made this implementation with OpenAI Codex. These results come from automated runs of the exact simulation code in this player. Download the Node tests and place them at tests/game-of-life.test.mjs beside public/play/game-of-life/index.html to repeat them with node --test tests/game-of-life.test.mjs.

John Conway and Life in 1970

John Horton Conway devised the Game of Life in 1970. Martin Gardner introduced it in his Mathematical Games column in Scientific American, October 1970. Gardner later recalled the visit from Conway that led to the column in his August 1998 retrospective, republished 29 May 2010.

For large constructions and an extensive pattern library, open copy.sh's Life viewer. Its Hashlife engine can follow patterns on a very different scale. The credits for this version identify the original rule and mathematical patterns.

Try Game of Life Studio, another maker's four-colony variant, to compare several populations. This player keeps the classic single-population rule. Find more simulation games and puzzle games, or make a browser game with Claude Code.

The Gosper glider gun after 30 generations, with 41 live cells.
The Gosper glider gun after 30 generations, with 41 live cells.
The pulsar's symmetric arms in the running Game of Life player.
The pulsar's symmetric arms in the running Game of Life player.

About Conway's Game of Life

Every cell has eight neighbors: four across its sides and four across its corners. The whole board changes at once. A newborn cell cannot affect another cell until the next generation, so stepping through a small pattern makes the rule easier to follow.

This version has a 120 by 80 board, with 9,600 places for cells. The left edge joins the right edge, and the top joins the bottom. A glider crossing an edge reappears on the opposite side. A long-running colony can eventually meet its own returning descendants.

The picker replaces the board with a single named pattern and resets the generation count. Use a blinker to study repetition, a glider to study travel, or the gun to watch new gliders appear. Random fill instead spreads cells across the board. Clearing or picking another pattern starts a fresh experiment.

Why is Conway's Game of Life called a zero-player game?

Once you choose the starting cells, the rules determine every later generation. You can watch without further input, or pause and edit the board to begin a different experiment.

What does B3/S23 mean?

B3 means a dead cell is born with exactly three living neighbors. S23 means a living cell survives with two or three. All cells update together using the previous generation.

Does the Game of Life grid go on forever?

The mathematical model uses an infinite grid. This simulator uses a 120 by 80 wrapping grid: cells on opposite edges are neighbors, so moving patterns can return and collide.

Is this the Game of Life board game?

This is John Conway's mathematical cellular automaton. The board game with a spinner, careers and money is a separate game.

Can I play Conway's Game of Life on my phone?

Yes. Tap Draw or Erase, then drag on the grid. Select 2×, 4× or 8× zoom for larger cells, and use Move to pan. The simulator runs in your browser.

One email a week. Unsubscribe anytime.