Conways Game of Life
------------------------------------------------------------------
------------------------------------------------------------------
-Explanation-
Conway's Game of Life is a set of rules that can be applied to a grid to create a cellular automaton. It is a zero-player game, meaning that its evolution is determined by its starting state.
Conway's Game of Life rules are as follows:
-1-
Any live cell with fewer than two live neighbours dies, as if caused 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.
------------------------------------------------------------------
-Formations-
Here are some interesting examples of what you can make with said rules
------------------------------------------------------------------
Examples of interesting growth patterns
------------------------------------------------------------------
Examples of Oscillators
(objects that experience some form of growth whilst staying in place)
------------------------------------------------------------------
Spaceships
(objects that move into a direction)
------------------------------------------------------------------
Gosper glider gun
(formation that shoots out gliders indefinitely)
------------------------------------------------------------------
-Code-
Here I'll be showing some of the code that was used in this project.
The main game(excluding the menu screen) uses only 2 scripts, a gameMaster and a tileManager for each individual tile
-The gameMaster-
-The tileManager-
------------------------------------------------------------------
I had a lot of fun making this project and it provided me with a fun and challenging task. And I learned a lot from it in the end.
If you're interested in Conway's GOL(or perhaps you would like to try it yourself), you can view the Wikipedia page about Game of Life