|
před 4 roky | |
---|---|---|
.gitignore | před 4 roky | |
LICENSE | před 4 roky | |
README.md | před 4 roky | |
conway.py | před 4 roky | |
poetry.lock | před 4 roky | |
pyproject.toml | před 4 roky | |
test_conway.py | před 4 roky |
An command-line implementation of Conway’s Game of Life in Python. It looks better with a square font such as Square.
$ python conway.py --help
usage: conway.py [-h] [-f FILE] [-s SPEED]
Conway's Game of Life
optional arguments:
-h, --help
show this help message and exit
-f FILE, --file FILE
The path to a file containing a starting grid. The grid file should use 0 for dead cells and 1 for living cells.
-s SPEED, --speed SPEED
The delay between iterations in milliseconds (default: 500, minimum: 100)
$ pytest