Skip to content

Ivan Li

Conway's Game of Life

Projects1 min read

An interesting self-playing game/simulation with simple rules that generate iterative "spawns" loosely resembling microorganisms. Created primarily with React and a sprinkle of JavaScript for the game rules.

The Rules

Credit: wikipedia

For every cell that is 'populated' (green):
  1. Each cell with one or no neighbors dies. (solitude)
  2. Each cell with four or more neighbors dies. (overpopulation)
  3. Each cell with two or three neighbors survives. (survival)
For every cell that is 'empty' or 'unpopulated' (black):
  1. Each cell with three neighbors becomes populated. (reproduction)

Launch Demo ↗️