Skip to main content

Game of life: Pyfection

Project description

=======================

An OO implementation of Conway's Game of life with a apocalyptic twist

.. image:: resources/worksonmymachine.png
:width: 150pt

Main Features
-------------

* Free software: MIT license
* Dependency free
* Winner of the "Works on my machine" certificate
* Game functions as supposed to
* Most likely all cells will die if enough generations are provided
* Some cells might come back as zombies

Usage
-----

Download from pip
::

pip install -U game_of_life_pyfection

Run from source

1) Fetch repo

::


git pull https://github.com/Michaelliv/game_of_life_pyfection.git

2) Move to game directory

::

cd game_of_life_pyfection
3) run tests

::

python -m unittest discover -s tests -p "test_*"
4) run game

::

python main.py [width] [height] [infect_after] [max_generations] [seed...]

-w width width of the board
-h height height of the board
-i infect_after generation after which cells are infected
-m max_generations maximal amount of generations
-s seed initial seed of the board

example:

python main.py 2 3 3 6 1 0 0 1 1 1

Home-page: https://github.com/Michaelliv/game_of_life_pyfection
Author: Michael Livshits
Author-email: livsmichael@gmail.com
License: MIT
Description: Game of life: Pyfection
=======================

An OO implementation of Conway's Game of life with a apocalyptic twist

.. image:: resources/worksonmymachine.png
:width: 150pt

Main Features
-------------

* Free software: MIT license
* Dependency free
* Winner of the "Works on my machine" certificate
* Game functions as supposed to
* Most likely all cells will die if enough generations are provided
* Some cells might come back as zombies

Usage
-----

Download from pip
::

pip install -U game_of_life_pyfection

Run from source

1) Fetch repo

::


git pull https://github.com/Michaelliv/game_of_life_pyfection.git

2) Move to game directory

::

cd game_of_life_pyfection
3) run tests

::

python -m unittest discover -s tests -p "test_*"
4) run game

::

python main.py [width] [height] [infect_after] [max_generations] [seed...]

-w width width of the board
-h height height of the board
-i infect_after generation after which cells are infected
-m max_generations maximal amount of generations
-s seed initial seed of the board

example:

python main.py 2 3 3 6 1 0 0 1 1 1




History
-------

0.1.0 (2018-09-18)
---------------------

* First release on PyPI.

Keywords: game_of_life_pyfection
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown

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

game_of_life_pyfection-0.1.0.tar.gz (4.8 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page