game-of-life

An implementation of Conway's Game of Life in React


Conway's Game of Life

This is an implementation of Conway's Game of Life using React.

Click a cell to toggle whether it is alive or dead.

These are the rules of the game:

  • 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.

Reference: https://en.wikipedia.org/wiki/Conway's_Game_of_Life

© 2020 Joshua Hall