Game of Life

Controls

  • Left-click: Toggle a cell alive or dead.
  • Right-click: Kill a cell.
  • Left-drag: Populate multiple cells.
  • Right-drag: Kill multiple cells.

Game Rules

  • Cells with 0 or 1 alive neighbors die.
  • Cells with 2 or 3 alive neighbors survive.
  • Cells with 3 neighbors populate.
  • Cells with 4, 5, 6, 7, or 8 neighbors die.
Source code on GitHub