A BSc Psychology and Bachelor of Game Development Graduate.
A quick learner and gamer full with passions.
Do visit my LinkedIn for more about me.
Play/Pause : Play or stop the simulation.
Clear : Reset map (set cells to live or die)
Map Size : Switch map size
Simulation Time : Switch simulation speed
-> Rules of Conway’s Game of Life <-
Every cell interacts with its 8 neighbours (horizontal, vertical, and diagonal). At each step in time, the following transitions occur:
To make these rules ‘alive’, I create a board with boolean that indicating if it is ‘alive’ or ‘dead’.
The rest is pretty simple, in the loop, the cells will check their neighbours state, and then update their own state, with the Conway’s Game of Life’s rules as the indicator.