An implementation of Conway's Game of Life in Python
Project description
Pylife
This is a test playground intended for exploration of Python language features and external tools. Breaking changes are not a concern.
Usage
# Clone and cd to the repo
git clone git@github.com:condekind/pylife.git && cd pylife
# From inside the project root, create a python 3.11+ virtualenv, e.g.:
# python -m venv .venv
# or, if already created, activate it:
# source .venv/bin/activate
# Run using provided input
python game_of_life_cli -i input/input03.txt
Example of a Gosper glider gun:
Some stats are printed on termination (ctrl+C):
^CINFO:root:
Running time: 4.7897047996521 seconds
CacheInfo(hits=123047, misses=349, maxsize=1024, currsize=349)
Todo:
Some of the listed items might be overkill for the time being, but this repo might also serve as a future python template
- mypy / lsp / lints / fix types (!!!)
- argparse
- pyproject.toml
- CI
- Tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file game_of_life_cli-0.1.1.tar.gz.
File metadata
- Download URL: game_of_life_cli-0.1.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c48415f4ca09b14e990f7b3a378b50488cb22c5e8de8641205528641a7eab928
|
|
| MD5 |
c52f9eb3dd00917de746484e3d1e4e14
|
|
| BLAKE2b-256 |
ca2c0ee00576aed8be5eeec3827e795d0c0ab87242fb6dbdb7e7f0ca2b68f8a6
|
File details
Details for the file game_of_life_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: game_of_life_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0643bc9ef13df8f598cdc70a70c0891c36f4eb69fe3c6f038ed7751d83907f1a
|
|
| MD5 |
6572e8cf61ff7fa4ade0f26d700df32f
|
|
| BLAKE2b-256 |
5067acf49ee3020363e0785202ffdcc6a6707d76eb1092f391760ce52afdfda7
|