The following project is a simple implementation of Conway's game of life in unity Engine.
In game of life each cell is either dead or alive.There are 4 rules for updating the cells in this game.
- 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.
In the code after each turn, the new state of each cell is determined in Cell
and then shown in GameManager
.Computation on a gruoup of Cells is done in the Grid
class.
The next step for the project is to implement a drag and drop system for adding some of the well-known patterns.