Basic rules:
- Any live cell with 0 or 1 live neighbors becomes dead, because of underpopulation
- Any live cell with 2 or 3 live neighbors stays alive, because its neighborhood is just right
- Any live cell with more than 3 live neighbors becomes dead, because of overpopulation
- Any dead cell with exactly 3 live neighbors becomes alive, by reproduction
My special cells:
- Killer cell:
Randomly move on the cellboard,kill
every cell it passby. - Healer cell:
Randomly move on the cellboard,revive
every cell it passby.
git clone https://github.com/luminousvilax/gol.git
pip install ./gol
python -m gol [-h] [-w WIDTH] [-l HEIGHT] [-f FILE] [-t TIMES] [-i INTERVAL] [-k] [-r]
optional arguments:
-h, --help show this help message and exit
-w WIDTH, --width WIDTH
-l HEIGHT, --height HEIGHT
-f FILE, --file FILE from an init state file
-t TIMES, --times TIMES
max run times
-i INTERVAL, --interval INTERVAL
interval seconds to flush state
-k, --killer put a killer cell
-r, --healer put a healer cell