![The game of life rules](https://kumkoniak.com/8.jpg)
If a cell is dead and it has exactly 3 neighbours it becomes alive again.If a cell is alive and it has fewer than 2 alive neighbours, it dies of loneliness.If a cell is alive and it has more than 3 alive neighbours, it dies of overcrowding.If a cell is alive, and 2 or 3 of it's neighbours are also alive, the cell remains alive.A cell's fate depends on the state of its 8 closest neighbours (our grid utilises wrapping, meaning a cell on the far left is thought of as a neighbour of a cell on the far right, and the same principle applies at the top and bottom). The game is now ready to begin, and this involves advancing through time one step at a time. You can do this in the above example by clicking on squares, or by picking a preset from the dropdown menu. Before you start the game, you need to provide an initial state. A cell can either be dead or alive (alive cells are coloured blue in our demo). The rules are as follows:Įach cell lives in a square in a rectangular grid.
![the game of life rules the game of life rules](https://i.pinimg.com/originals/10/0b/a3/100ba31039b228848f823dd0637f9242.jpg)
Conway's Game of Life is a game invented by mathematician John Conway in 1970.
![The game of life rules](https://kumkoniak.com/8.jpg)