This is my small lockdown-weekend project: my tribute to John Horton Conway - an interactive version of Life Game. I always wondered, how fun it would be to be able modify life's world in the runtime. So here it is: use your mouse to add new life forms.
Video demonstration:
- Python 3.8 or newer (should work on 3.6+, but I didn't test it)
- Numpy (
pip install numpy) - OpenCV (
pip install opencv-python)
It should run on any system where you can install Python with modules listed above, however I tested it only on Windows.
Run python3.exe wild_life.py (or equivalent on your system)
- Mouse-click anywhere to insert species
- Mouse-click on the species list in the bottom to select species to be inserted
1,2,3,4keys to change color mapEscto exit
All configuration parameters are stored in the first part of wild_life.py file.
The minimal_code folder contains shortest python implementation I was able to create. It's fully functional (though not interactive), with OpenCV visualisation, very fast. In only 141 bytes of code :)
Hit Esc to exit.
Copyright 2021, 2022, 2023, 2024 Paweł Budziszewski
