Game of Life implemented on PyQT5. It can run in 3 ways (1.random state, 2. state initialized described in file, 3. process N th generation then dump last state)
random state will be initialized below conditions. (row : 40 ~ 80, col : 80 ~ 120)
- Python 3.6
-
install python package with
install.sh
-
Run with random state
python game_of_life.py
-
Run with declared state file
python game_of_life.py plus.txt
-
Run with declared state file & dump N th generation state
python game_of_life.py plus.txt 10
- dump N th generation state into
result.txt
file
Download & Unzip this[https://drive.google.com/file/d/1Zqjo77ZCLVs9-1J-gwann6NO-1XSP5fS/view?usp=sharing]
-
Run with random state
./game_of_life
-
Run with declared state file
./game_of_life plus.txt
-
Run with declared state file & dump N th generation state
./game_of_life.py plus.txt 10
- dump N th generation state into
result.txt
file
40 80 # row, col size
5 # N th initial cells count
19 19 # initial cell #1
20 18 # ...
20 19 # ...
20 20 # ...
21 19 # initial cell N