Kolton Ndoj

Conway's Game of Life

As a famous screensaver and coding challenge, and as the simplest window into how simple rules build complicated worlds

What problem does it solve?

Can a grid of cells following three tiny rules produce motion, machines, even computers?

The big idea

Each cell looks only at its 8 neighbours, yet patterns emerge that seem alive: blinkers, gliders that crawl diagonally forever, 'guns' that fire gliders. Nobody programs a glider to move. Its motion is an illusion made of cells dying on one side and being born on the other. The rules are so rich that you can build logic gates from glider streams, which means the Game of Life can compute anything an ordinary computer can.

How it works, step by step

  1. 1. Start with a grid where each cell is alive or dead.
  2. 2. For every cell, count its live neighbours (out of 8).
  3. 3. A live cell with 2 or 3 live neighbours survives; otherwise it dies.
  4. 4. A dead cell with exactly 3 live neighbours is born.
  5. 5. Update every cell at the same moment, then repeat.

How fast is it?

Each generation touches every cell once, so it's proportional to the grid size. Clever programs like Hashlife remember repeated patterns and can leap ahead by trillions of generations.

Try it yourself

Fun fact

John Conway invented it in 1970, and Martin Gardner's Scientific American column made it famous that October. People have since built a working Game of Life inside the Game of Life, using huge 'metapixel' patterns as giant cells.

Related

Play with the live demo →

Games · Beginner-friendly