Game of Life with p5.js; an interpretation30 Mar 2020
Game of life is one of the first implemented computer simulations, proposed by John Conway in the 1940s. The simulation was proposed as an experiment to model an evolving population. The population is represented by a set of squares in a grid followed through a period in time, where each square represents an individual. Individuals can be either dead or alive, depending on the previous state of their neighbours.
Starting from a chosen initial population, the Game of Life evolves according to the following rules.
- A live cell remains alive if it has 2 or 3 neighbours who are also alive, otherwise it dies.
- A dead cell becomes alive if it has 3 neighbours, otherwise it stays dead.
The classical Game of Life is often displayed on a grid where living individuals are black cells and dead individuals are white cells, evolving over time.
As a play on this concept, the Game of Life animation displayed below follows the same concepts, but living individuals have different colors, are presented in circles and slowly fade out. Additionally, by clicking/touching the animation, new shapes are introduced in the animation.
Check the fullscreen version here