Simulation · Live Demo

Conway's Game of Life

The classic cellular automaton, ported from my Python version. Every cell lives or dies based only on its eight neighbors, yet gliders, oscillators, and whole ecosystems emerge from those four tiny rules. Cells are colored by age so you can watch structure form and decay.

  • The rules. A live cell with two or three neighbors survives, a dead cell with exactly three is born.
  • Age colors. Newborn cells are green, young cells purple, and long-lived cells pink.
  • Play with it. Click or drag to draw cells, then play, pause, step, and change the speed.
JavaScriptCanvasCellular Automata
View source on GitHub

Click or drag on the grid to draw cells. Green is newborn, blue is young, pink is old.