Game of Life

Gen0
Alive0
Born0
Died0
Grid:
Presets:

What is Conway's Game of Life?

The Game of Life is a cellular automaton devised by British mathematician John Horton Conway in 1970. It is a zero-player game: its evolution is determined entirely by its initial state, with no further input needed. You set up an initial configuration of cells on a two-dimensional grid, press play, and watch what unfolds.

Conway, who was a professor at Princeton University, designed the game after years of experimenting with different rule sets. He wanted rules simple enough to be computable by hand yet complex enough to produce interesting, unpredictable behavior. The Game of Life was popularized by Martin Gardner in his "Mathematical Games" column in Scientific American in October 1970, and it quickly became one of the most studied objects in recreational mathematics and computer science. Conway passed away on April 11, 2020, but his creation continues to inspire generations of mathematicians and programmers.

The Rules

The universe of the Game of Life is an infinite two-dimensional grid of cells, each of which is in one of two states: alive or dead. Every cell interacts with its eight neighbors (horizontally, vertically, and diagonally adjacent). At each step (generation), the following rules apply simultaneously to every cell:

  1. Underpopulation: A live cell with fewer than 2 live neighbors dies.
  2. Survival: A live cell with 2 or 3 live neighbors lives on to the next generation.
  3. Overpopulation: A live cell with more than 3 live neighbors dies.
  4. Reproduction: A dead cell with exactly 3 live neighbors becomes alive.

These four rules can be summarized even more concisely: a cell is alive in the next generation if and only if it has exactly 3 neighbors, or it is currently alive and has exactly 2 neighbors. This implementation uses wrapping (toroidal) boundaries, meaning the grid edges connect to the opposite side.

Famous Patterns

Over five decades of exploration, enthusiasts have catalogued thousands of interesting patterns. Here are the ones included in this simulator:

  • Glider: The smallest and most iconic spaceship. Discovered in 1970, it translates diagonally across the grid, completing a cycle every 4 generations. It has become an emblem of the hacker community.
  • Gosper Glider Gun: Discovered by Bill Gosper in 1970, this was the first known finite pattern to exhibit unbounded growth. It continuously emits gliders, one every 30 generations. Its discovery won a $50 prize offered by Conway himself.
  • Pulsar: The most common period-3 oscillator. Discovered by Conway, it has a beautiful fourfold symmetry and toggles between three distinct states.
  • Pentadecathlon: A period-15 oscillator, one of the longest-period oscillators that can be found naturally. Its name comes from its 15-generation cycle.
  • R-pentomino: A deceptively simple 5-cell pattern that takes 1,103 generations to stabilize, producing gliders, blocks, blinkers, and other debris. It was one of the first patterns to demonstrate how simple initial conditions can lead to enormous complexity.
  • LWSS (Lightweight Spaceship): The smallest orthogonal spaceship, traveling horizontally or vertically. It moves at half the speed of light (c/2), where c is one cell per generation.
  • Acorn: A methuselah (long-lived) pattern of just 7 cells that takes 5,206 generations to stabilize, eventually producing 633 cells including 13 gliders.

Why Does It Matter?

The Game of Life is far more than a curiosity. It is Turing complete, meaning it can simulate any computation that a general-purpose computer can perform. Logic gates, memory, and even entire processors have been built within the Game of Life. This makes it a profound demonstration that complex computation can emerge from extremely simple rules.

The Game of Life is a foundational example in the study of emergent complexity and self-organization. It influenced fields ranging from theoretical biology (modeling population dynamics and morphogenesis) to artificial life research, where scientists study how lifelike behaviors can arise from simple computational substrates. Stephen Wolfram's extensive work on cellular automata, culminating in A New Kind of Science (2002), was partly inspired by explorations in the Game of Life.

For programmers, the Game of Life is a classic exercise in algorithm design, optimization, and visualization. Implementations range from naive nested loops to highly optimized algorithms like Hashlife, which can compute trillions of generations in seconds by exploiting the recursive structure of patterns through memoization.

Fascinated by emergent complexity from simple rules? Tactiko is a tactical football game where simple player moves create complex match dynamics — just like how simple cellular automaton rules create infinite complexity.

Play Tactiko — Free Tactical Football