This is an implementation of Conway's game of life in Python, using pygame for rendering.
There are two game modes:
Simulates Conway's game of life.
- You can click on cells to toggle them on or off.
- Pressing
space
advances the game by one step. - Preesing
e
toggles auto-advancing the game. - While auto-advancing, you can press the up/right arrow keys to increase the speed, and the down/left arrow keys to decrease the speed.
Inspired by SigmaGeek/Stone Automata Maze Challenge.
- Live cells are walls.
- The player is the red cell.
- The goal is the green cell.
- You can left-click on a cell to toggle it on or off.
- You can right-click on a cell to set it as the player or the goal.
- Walls are deadly, so don't touch them!
Tested on Python 3.10:
pip install -r requirements.txt
python main.py