Skip to main content

A simple implementation of Conway's Game of Life

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-GameOfLife-simplified-0.0.0.2.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page