Conway's Game of Life
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
simulacrumparty 2db438c475 Fix random bold fonts in readme 3 年前
.gitignore Initial commit 3 年前
LICENSE Initial commit 3 年前
README.md Fix random bold fonts in readme 3 年前
conway.py Initial commit 3 年前
poetry.lock Initial commit 3 年前
pyproject.toml Initial commit 3 年前
test_conway.py Initial commit 3 年前

README.md

Conway’s Game of Life

An command-line implementation of Conway’s Game of Life in Python. It looks better with a square font such as Square.

Usage

$ 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)

Testing

$ pytest

License

MIT