A simple Conway's Game of Life implementation using Python and Pygame. Click cells to toggle them alive or dead, then press Space to start and stop the simulation.
- Python 3.8+ (recommended)
pygame
- Open a terminal in the project folder.
- Install Pygame:
pip install pygameIf your system uses python3 instead of python, use:
python3 -m pip install pygameFrom the project directory, run:
python "Game of Life.py"or, if needed:
python3 "Game of Life.py"Space: Toggle simulation start/pause and switch the step speed.- Left mouse button: Click cells to toggle alive/dead when the simulation is paused.
- Resize the window freely to adjust the view.
- The grid updates automatically when the simulation is running.
- Cell editing is intended while paused to set your initial patterns.
- The script uses a resizable Pygame window.