the-game-of-life
Dead simple Conway's game of life
The rules are simple
- if a cell has 2 or 3 living neighbours, the cell survive
- if a dead cell has 3 neighbours, the cell become alive
- if a cell has less than 2 neighbours, the cell dies
- 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