Conway's Game of Life

Rana Shahzaib


This is a fairly simple implementation of Conway's Game of Life. It works on 3 ground rules:

  • Any live cell with two or three live neighbours survives.
  • Any dead cell with three live neighbours becomes a live cell.
  • All other live cells die in the next generation. Similarly, all other dead cells stay dead.

Complete code is written in HTML / JS and can be found  here.