- Any live cell with fewer than 2 live neighbor dies, as if by underpopulation.
- Any live cell with 2 or 3 live neighbors lives on to the next generation.
- Any live cell with more than 3 live neighbors dies, as if by overpopulation.
- Any dead cell with exactly 3 live neighbors becomes a live cell, as if by reproduction.
- Any live cell with 2 or 3 live neighbors survives.
- Any dead cell with 3 live neighbors becomes a live cell.
- All other live cells die in the next generation. Similarly, all other dead cells stay dead.
🛠️ Requirements/Rules obtained from Wiki
python -m venv <Name-of-your-choice>
orpython3 -m venv <Name-of-your-choice>
(to create a virtual environment to install pygame)source <Name-of-your-venv-folder>/bin/activate
(spins up your virtual environment)pip install pygame
- While still in virtual environment, type
python main.py
into your terminal.