Skip to content
/ conways Public

A command-line implementation of Conway's Game of Life.

Notifications You must be signed in to change notification settings

hph/conways

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

conways

A command-line implementation of Conway's Game of Life. Tested with Python 2.7.3 and Python 3.2.3.

Examples

Setup

git clone git://github.com/hph/conways.git && cd conways
cp conways.py /usr/local/bin/conways
chmod +x /usr/local/bin/conways

Usage

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.

About

A command-line implementation of Conway's Game of Life.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages