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

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.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_GameOfLife_simplified-0.0.0.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file py-GameOfLife-simplified-0.0.0.1.tar.gz.

File metadata

File hashes

Hashes for py-GameOfLife-simplified-0.0.0.1.tar.gz
Algorithm Hash digest
SHA256 f6d68a8c55a69127a1a7f9e1485ec594b36ca7736c35544d5ca96d967b9351d2
MD5 c7b85807a484c7b5866fb417c6c59c91
BLAKE2b-256 8e169ec6541340907eebd29a3816fcb74b94ccc925a0c13b8959717d5d604c45

See more details on using hashes here.

File details

Details for the file py_GameOfLife_simplified-0.0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for py_GameOfLife_simplified-0.0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 832d5f10a4f3025264a1b71e8d5e0c6c8d72c3bb111171b920aa237af31924c9
MD5 d7cbe20de590605bc38b27f9ff963133
BLAKE2b-256 3d21f619a17504ae83bfd2bea2a3794aa486dc69746c35e248ef8078b6d3db0d

See more details on using hashes here.

Supported by

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