Skip to content

godstanis/conwgol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's game of life

🎲 Simple Conway's game of life library in Python3 (Python 3.6.9)


Description

Conway's game of life is implemented in pkg/cnwgl.py file. There are some functions, working with list map generations and some upper level helpers to interact with images creation.

Usage

You can run it on your input images, here is the CLI definition:

Usage:
    conwaygol.py <input_image> <output_gif> [generations]

Options:
    input_image  (required)     Image path of the first Conway's generation (black pixel for
                                live cells and white ones for dead)
    output_gif   (required)     Gif image path where the resulting animation will be placed
    generations  (default: 50)  Number of generations (gif frames) to output

Usage example: python3 conwaygol.py input.png output.gif 300

Example (upscaled) of converted input.png:

Releases

No releases published

Packages

No packages published

Languages