zeddo123 / the-game-of-life

Conway's Game of Life

Home Page:https://en.wikipedia.org/wiki/Conway's_Game_of_Life

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the-game-of-life

Dead simple Conway's game of life

The rules are simple

  1. if a cell has 2 or 3 living neighbours, the cell survive
  2. if a dead cell has 3 neighbours, the cell become alive
  3. if a cell has less than 2 neighbours, the cell dies
  4. if a cell has more than 3 neighbours, the cell dies

Usage

usage: drawing.py [-h] [-g N] [-s N] [-c N, N) [(N, N ...]] [-t {cli,gui}]

A Dead Simple Conway's game of life
optional arguments:
  -h, --help            show this help message and exit
  -g N, --generations N
                        number of generation to loop over
  -s N, --size N        size of the board
  -c (N, N) [(N, N) ...], --cells (N, N) [(N, N) ...]
                        set the initial alive cells
  -t {cli,gui}, --type {cli,gui}
                        type of display

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. note:procedural code

Licence

WTFPL

About

Conway's Game of Life

https://en.wikipedia.org/wiki/Conway's_Game_of_Life


Languages

Language:Python 100.0%