8000 GitHub - luminousvilax/gol: Little practise of the game of life
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

luminousvilax/gol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Little practise of the game of life

The Conway's Game of Life Breeder automaton

Basic rules:

  1. Any live cell with 0 or 1 live neighbors becomes dead, because of underpopulation
  2. Any live cell with 2 or 3 live neighbors stays alive, because its neighborhood is just right
  3. Any live cell with more than 3 live neighbors becomes dead, because of overpopulation
  4. Any dead cell with exactly 3 live neighbors becomes alive, by reproduction

My special cells:

  1. Killer cell:
    Randomly move on the cellboard, kill every cell it passby.
  2. Healer cell:
    Randomly move on the cellboard, revive every cell it passby.

Install

git clone https://github.com/luminousvilax/gol.git
pip install ./gol

Usage

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

About

Little practise of the game of life

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0