Skip to content

[M1 DS][Computer Science Refreshment] Game of Life project

License

Notifications You must be signed in to change notification settings

MaxenceGiraud/GameOfLife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GameOfLife

GameOfLife Project

Build Status

CircleCI

Contributors

Project done By Maxence Giraud

How to use

From the command line

python3 GameOfLife/gameoflife.py -i inputfile -o outputfile -s numberofsteps

### Simple example
python3 GameOfLife/gameoflife.py -i breeder.rle -o breader.mp4 -s 300

Using python

import GameOfLife as gof

nsteps = 300
grid = gof.load_grid("breader.rle")
movie = gof.compute_movie(grid, 300)
gof.makeMovie(movie, "breader.mp4")

unittest

To launch unittest :

python3 -m unittest tests/gof_test.py

Input files

This program supports RLE files, to look at the formalism : https://www.conwaylife.com/wiki/Run_Length_Encoded

License

GPLv3

About

[M1 DS][Computer Science Refreshment] Game of Life project

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages