Conway's Game of Life
What is the Game of Life?
The game of life is a cellular automiton created by John Conway, a british mathematitian. The game is not
played, rather watched, an initial input 'world' is input and then the world is simulated forward.
The worlds of the game of life consist of a 2D grid, where each cell can either be alive or dead. The living
state of a cell can be determined by the world in the previous time step using rules based on the number of
living and dead neighbouring cells and the state of that cell.
The rules for Conway's game of life are simple:
- Any live cell with fewer than two live neighbours dies, as if by underpopulation.
- Any live cell with two or three live neighbours lives on to the next generation.
- Any live cell with more than three live neighbours dies, as if by overpopulation.
- Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.