Skip to content

About

Conway's Game of Life Implementation in Python

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

conway_python

Conway's Game of Life Implementation in Python

Inspired by the following project at realpython.com: https://realpython.com/conway-game-of-life-python

Quick Start

  1. Clone the repo
$ git clone https://github.com/smcgarril/conway_python.git
$ cd conway_python
  1. Initialize and activate a virtual environment:
$ python -m venv venv
$ source venv/bin/activate
  1. Build project:
$ python -m pip install -e .
  1. Run the program:
$ conway_python -p "Glider Gun" -g 100

Options

The program accepts the following options which can be passed as command line arguments:

-h, --help                Displays information on possible choices

--version                 Prints current version and exits

-p, --pattern             Choose a starting pattern from the list in patterns.toml (default: Blinker)

-a, --all                 Loop through all patterns in patterns.toml

-v, --view                Choose a view type from views.py (default: CursesView)

-g, --gen                 Set number of generations to evolve (default: 10)

-f, --fps                 Set frames per second (default: 7)

About

Conway's Game of Life Implementation in Python

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages