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 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.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for py-GameOfLife-simplified-0.0.0.2.tar.gz
Algorithm Hash digest
SHA256 001d72828f8bd89275521c5952fe403713032f823bf0e0085cdded81d1c8f2dc
MD5 a3717e7ef1bb12780589a874ba2cf939
BLAKE2b-256 a2d983942fe74c1865ccc23e549f3e0cf6c51d097a90c79fed53adb5f7ef1e58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_GameOfLife_simplified-0.0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5fbf2c5d69b0ecbfcb312701879d0fc0bca59f9a40e34af123eb91f341d04697
MD5 4ebf5ae118b1a9a1c642992de0a4c9ec
BLAKE2b-256 b5e400062f68aa82b50c30bee7ca7bdc4c1252a0b52497c22da583908c57db64

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