FlipEnergy / gol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conway's Game of Life

This program runs Conway's Game of Life (GOL) in terminal, with a curses-like UI. If you don't know what GOL is, check out these links.

Screencasts

Spider:

Spider screencast

Lobster:

Lobster screencast

Prerequisites

  • Python 3.6.9 or higher.
  • No need to install any extra Python packages, this runs on Python's standard library.

Play

You can begin by running something like this.

python3 play.py -w -p seeds/spaceships/spider.txt

This means begin playing by running the seed text file seeds/spaceships/spider.txt, on a board with wrap-around.

Press Ctrl+C to exit the program.

For all options, see help message.

python3 play.py -h

Tests

To run tests, first install required packages.

pip3 install -r requirements.txt

Then run this.

pytest tests

RIP

John Conway died of complications from COVID-19 on 11 April 2020, at age 82. This project is made in remembrance of him.

About

License:MIT License


Languages

Language:Python 100.0%