This is a simple implementation of the Conway's Game of Life in Python.
- Python 3.6 or higher
To install the required dependencies, in this case only pygame:
pip install pygame
To run the game, simply execute the main.py
file:
python main.py
The game is played on a grid of cells, where each cell can be either alive or dead. The objective of the game is to keep the grid alive by following the following rules:
- Any live cell with fewer than two live neighbours dies, as if by underpopulation.
- Any live cell with two or three live neighbours lives on to the next generation.
- Any live cell with more than three live neighbours dies, as if by overpopulation.
- Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
The game is over when there are no more live cells on the grid.
This project is licensed under the MIT License - see the LICENSE file for details.