The Game of Life
Conway's Game of Life is a cellular automaton simulation where cells live, die, or reproduce on a 2D grid based on four simple neighbor rules. A concise Python implementation involves creating a grid, counting neighbors for each cell, and updating states simultaneously to simulate "ticks" or generations.
This is an attempt to re-create his experiment. This window wraps around both vertically and horizontally to better elongate the simulations lifetime.
You can download the HTML for this HERE.
Game of Life
Click to draw cells. Press Start to simulate.
Game Rules
- Any live cell with fewer than 2 neighbors dies (underpopulation).
- Any live cell with 2 or 3 neighbors survives.
- Any live cell with more than 3 neighbors dies (overpopulation).
- Any dead cell with exactly 3 neighbors becomes alive (reproduction).
- The grid wraps around edges (top connects to bottom, left to right).