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.
- Any alive cell that has two or three neighbors that are alive lives to the next generation due to cooperation.
- Any alive cell with less than two neigbours dies due to underpopulation.
- Any dead cell with three neighbors comes to life due to reproduction.
- Any alive cell with more than three living neighbours dies due to overpopulation
The game is deployed here.