This is a website in which you can play with Conway's Game of Life.
Wikipedia article on Game of Life: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
Conway's Game of Life is a simple cellular automaton which was devised by the British mathematician John Horton Conway in 1970.
There is a grid of cells and each cell can be alive(black) or dead(white). You give it some intial state and then it will evolve on its own!
In each iteration, you will count number of neighbour cells which are alive and according to that decide state of this cell in next iteration.
Every cell has eight neighbours, which are the cells that are horizontally, vertically, or diagonally adjacent.
- Any live cell with fewer than two live neighbours dies, as if by underpopulation.
- Any live cell with two or three live neighbours lives on to the next generation.
- Any live cell with more than three live neighbours dies, as if by overpopulation.
- Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
And you keep on doing iterations and intriguing shapes appear, try to find basic glider(a shape that keeps on going in one direction)!
Link to webpage: https://mantra-7.github.io/game_of_life/