Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.28 KB

README.MD

File metadata and controls

20 lines (14 loc) · 1.28 KB

Conway's Game of life

The Game of life is a zero player game invented by John Conway in 1970.

The game involves a grid that contains cells. In order to play the game an initial state of the grid is set. Each cell can either be one of two state(alive or dead). The initial state of the grid is called the first generation. Subsequent generations are determined by Rules of life.

Rules

  1. Any alive cell that has two or three neighbors that are alive lives to the next generation due to cooperation.
  2. Any alive cell with less than two neigbours dies due to underpopulation.
  3. Any dead cell with three neighbors comes to life due to reproduction.
  4. Any alive cell with more than three living neighbours dies due to overpopulation

The game is deployed here.

Resources