Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 1.15 KB

README.md

File metadata and controls

23 lines (14 loc) · 1.15 KB

conway's game of life

The following project is a simple implementation of Conway's game of life in unity Engine.

Made with

Unity C#

Explanation

In game of life each cell is either dead or alive.There are 4 rules for updating the cells in this game.

  1. Any live cell with fewer than two live neighbours dies, as if by underpopulation.
  2. Any live cell with two or three live neighbours lives on to the next generation.
  3. Any live cell with more than three live neighbours dies, as if by overpopulation.
  4. 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.

Next Steps

The next step for the project is to implement a drag and drop system for adding some of the well-known patterns.