Skip to content

piyushagade/Game-Of-Life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game Of Life

Simplistic Python implementation of Conway's Game of Life.

Usage

Clone the repository using:

git clone https://github.com/piyushagade/Game-Of-Life.git

Tweak the universe (culture) by changing the system variable in game_of_life.py The changeable varialbles are:

  1. width, height (Obvious)
  2. life_of_culture (Number of maximum generation to be simulated)
  3. age_of_culture (Current age of culture)
  4. no_of_seeds (Number of first generation organisms)

Simulate the culture using:

cd Game-Of-Life
python game_of_life.py

Output

The program generates PNG files in 'png' directory, which can be accessed using:

cd png
0.png
1.png
.
.
.

and a GIF animation in 'gif' folder, which can be accessed using:

cd gif
animation.gif

Dependencies

  1. matplotlib
  2. numpy
  3. imageio

Screenshots

About

Python Implementation of Conway's Game of Life

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages