aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: b98699c25ecbb94d7d6662297ecd16eca47c6ae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Game of life

Command line to observe how [Conway's game of life](https://www.wikiwand.com/en/Conway's_Game_of_Life) works.

## Installation

[pygame](https://www.pygame.org) for a graphical representation:
`> pip install pygame`

Patterns database can be downloaded [here](www.conwaylife.com/patterns/all.zip), put all files in the [patterns](patterns/) directory.
Or you can run the `install_patterns.sh` script.

## Usage

For a quick demo: `> python main.py`.
To see the different options: `python main.py -h`.

In graphical mode you can move around using arrow keys and zoom in and out with `+` and `-`.

There is also an ugly console display: `python main.py --console-display`.