Skip to content

vezaynk/game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulations

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.

Recordings

Ant

Ant

The "Ant" points to the next cell it is going to go to.

Game of Life

Game of Life

Each generation has a new color. This lets us clearly see which cells are new, and which cells are old.

Controls

Start simulation S
Pause P
Increase speed
Decrease speed
Load file F
Random R
Quit Q

Running

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

About

Programming IV assignment 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages