Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hph/conways
A command-line implementation of Conway's Game of Life.
https://github.com/hph/conways
Last synced: 10 days ago
JSON representation
A command-line implementation of Conway's Game of Life.
- Host: GitHub
- URL: https://github.com/hph/conways
- Owner: hph
- Created: 2013-05-07T00:29:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-23T02:51:15.000Z (about 10 years ago)
- Last Synced: 2024-10-13T07:21:46.830Z (25 days ago)
- Language: Python
- Homepage:
- Size: 137 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
conways
=======A command-line implementation of Conway's Game of Life. Tested with Python
2.7.3 and Python 3.2.3.Examples
--------
* [Screenshot](http://i.imgur.com/8G53a1o.jpg)
* [Video](http://www.youtube.com/watch?v=MK-_l4czzuU)Setup
-----git clone git://github.com/hph/conways.git && cd conways
cp conways.py /usr/local/bin/conways
chmod +x /usr/local/bin/conwaysUsage
-----
Simply run `conways` to execute the program with the default options. For a
full list of options run `conways -h`:usage: conway [-h] [--width WIDTH] [--height HEIGHT] [--chance CHANCE]
[--fps FPS] [--no-clear]Visualize Conway's Game of Life with a command-line interface.
optional arguments:
-h, --help show this help message and exit
--width WIDTH Number of columns in the grid. The default is 40.
--height HEIGHT Number of rows in the grid. The default is 21.
--chance CHANCE Denotes the chance for a living cell in each grid
coordinate. The default is 0.5.
--fps FPS The number of generations per second. The default is 4.0.
--no-clear Do not clear previous generations.