Skip to content

ScientificClubofESI/GameOfLife

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forked from scienceetonnante/GameOfLife

GameOfLife

GameOfLife In Python, used in my Youtube video https://www.youtube.com/watch?v=S-W0NX97DB0 Produces movie starting from a given pattern. Requires numpy and matplotlib packages, and "ffmpeg" software for producing animations. Can read RLE files as input patterns (http://www.conwaylife.com/wiki/RLE)

Modifications

I used the argparse library, to add a linux like command line interface, to the script.

I modified the rle files, so they can embed parameters.

I added the "--rlefile_path" argument, to pass the file to read as an argument on command line. So you can use as follows:

$python GameOfLife.py --rlefile_path path

I added the "--output_dir" argument, to direct output in a customized directory. The directory is automatically created, if it does not already exist. Its default value is: "output".

I added the "--ffmpeg_path" argument, to set the path to ffmpeg

About

GameOfLife In Python, used in my Youtube video

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%