A command-line implementation of Conway's Game of Life. Tested with Python 2.7.3 and Python 3.2.3.
git clone git://github.com/hph/conways.git && cd conways
cp conways.py /usr/local/bin/conways
chmod +x /usr/local/bin/conways
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.