avinashkarhana / GameOfLife

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build and Publish to PyPI

GameDriver

A simple implementation of Conway's Game of Life.

Pythonic interface for easy imports to other projects.

Check `GameDriver.py` for reference

INSTALLATION:

> pip install py-GameOfLife-simplified

USAGE:

python3 GameOfLife [options]
Options:
    -h, --help                      :   Show this help message and exit.
    -v, --version                   :   Show version and exit.
    board_size=<int>                :   Set board size.
    show_generation_changes=<bool>  :   Show changes that are going to take 
                                        place in upcoming generation.
    clear_terminal=<bool>           :   Clear terminal before each generation.
    show_board_with_icons=<bool>    :   Show board with icons.
    stepper_mode=<bool>             :   Step through generations.
    next_gen_interval=<float>       :   Display new generation with given 
                                        seconds of interval.
    # In stepper mode, use `Enter` key to move to next generation. 
    # Use `CTRL+C` key-combination to exit in non stepper mode to exit.
    # Use 'Q' key in stepper mode to exit.
Example:
    python3 -m GameOfLife board_size=50 show_generation_changes=False clear_terminal=True show_board_with_icons=true stepper_mode=False next_gen_interval=0.5

About

License:MIT License


Languages

Language:Python 100.0%