This was my submission for my second assignment of Programming IV at CEGEP Heritage.
There are two simulations herein: Conways's Game of Life and Langton's ant. You can read how they work on their respective Wikipedia pages.
Both are built using TKinter and Python 3.
The "Ant" points to the next cell it is going to go to.
Each generation has a new color. This lets us clearly see which cells are new, and which cells are old.
Start simulation | S |
---|---|
Pause | P |
Increase speed | ↑ |
Decrease speed | ↓ |
Load file | F |
Random | R |
Quit | Q |
Under normal circumstances, simply running python3 game_of_life.py
or python3 ant.py
will be sufficient.
If running under WSL you will need install and X Server and run it with a DISPLAY
environment variable:
DISPLAY=:0 python3 game_of_life.py