Conway's Game of Life is a cellular automaton simulation that demonstrates how simple rules can lead to complex behaviors. Cells on a grid live, die, or reproduce based on their neighbors.
- Automatic cell spawning every 10 seconds
- User interaction to add or remove cells
- Visual representation of alive (red) and dead (gray) cells
- Pygame
- NumPy
-
Install Python: Ensure you have Python installed.
-
Clone the repository:
git clone https://github.com/itsdoruk/python-cgl.git cd python-cgl -
Install dependencies:
pip install pygame numpy
-
Run the simulation:
python main.py
R: Randomize the gridZ: Add a cellX: Remove a cell- Arrow keys: Adjust frame rate
