Skip to content

tomaszsztajkowski/game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life by Tomasz Sztajkowski

my implementation of Conway's Game of Life in pygame

Installation

  • Install Python 3.x, preferably Python 3.8.2
  • Install needed modules by running the command below in the terminal
pip install -r requirements.txt
sidenote: if Python 2.x is installed on your machine it may be required to use one of the two following commands:
pip3 install -r requirements.txt
python3 -mpip install -r requirements.txt

Setup

  • type in terminal either
python run.py

or

python3 run.py

Instructions

  • left mouse button - draw live cells / select a bitmap to load in
  • right mouse button - draw dead cells
  • '-'/'+' - slower/faster animation
  • space - start/stop simulation
  • right arrow button - advance the simulation by one step
  • escape - clear the map
sidenote: you can add your own bitmaps for repeated use to the 'patterns' folder

About

Python symulation of Conway's Game of Life

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages