Game of Life
This is a vanilla Javascript implementation of Conway's Game of Life, which is a cellular simulation with these rules :
- A cell with less than 2 cell in its neighbourhood dies, as if by solitude
- A cell with 2 cells in its neighbourhood survives
- A cell with 3 or more cells in its neighbourhood dies, as if by food scarcity
- An empty cell with just one cell in its neighbourhood gets populated, as if by reproduction
Click or drag on the canvas to add or remove cells, and use the controls below to play with the simulation.