Conway's Game of Life
The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970. It is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves. Read more on Wikipedia
The Rules
The game takes place in an infinite 2D, square grid, where each cell can either be live (white) or dead (black). Every step in time, the following calculations occur:
- Any live cell with less than two living neighbors dies (underpopulation)
- Any live cell with two or three living neighbors lives to the next generation
- Any live cell with more than three live neighbors dies (overpopulation)
- Any dead cell with exactly three live neihbors becomes a live cell (reproduction)
How to use
This implementation does not have an infinite grid, but instead has a 100x100 matrix whose edges detect each other. This ensures that all cells have 8 neighbors to check. By hovering over any cell, you can use the neighbor indicator to see what cells are "next" to it, and how many are alive.
To edit the game at any time, left click to create live cells, and right click to create dead cells.
Press "start" to begin the simulation.
[??,??] :: ?