Skip to content

A simple implementation of conway's game of life in unity engine

Notifications You must be signed in to change notification settings

sinatb/game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple implementation of conway's game of life in unity engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published