Conway's Game of Life is a cellular automaton, played on a 2D grid. Player can set up the initial state of grid. When the algorithm starts, every cell on the grid evolves based on the defined rules.
Each cell on the grid can be either Alive or Dead according to the following rules:
- Any alive cell with 2 or 3 neighbors survives to the next generation.
- Any alive cell with less than 2 neighbors dies.
- Any alive cell with more than 3 neighbors dies.
- Any dead cell with exactly 3 neighbors comes to life.