This program uses Pygame to simulate Conway's Game of Life.
The rules are simple:
- Any live cell with two or three live neighbours survives.
- Any dead cell with three live neighbours becomes a live cell.
- All other live cells die in the next generation. Similarly, all other dead cells stay dead.
To run, ensure Pygame is installed and run main.py
as a python file.
r - Places cells at random places on the grid
c - Clears the Grid
Left click - Toggles the state of a square to either dead or alive