It's a cellular automaton.
Just create an initial configuration and observe how it evolves.
More information about the process on Wikipedia.
To play, run main.py
tkinter
: the standard Python interface to the Tk GUI toolkit. See Docs.
NumPy : the fundamental package for scientific computing in Python. See Docs.
If not installed yet, run:
- using pip :
pip install python-tk
pip install numpy
For python 3 :
pip install python3-tk
pip3 install numpy
- on Linux :
sudo apt-get install python-tk
sudo apt-get install python-numpy
For python 3 :
sudo apt-get install python3-tk
sudo apt-get install python3-numpy
- The tkinter module is not the same depending on your Python version.
If you get this while running the script:
ImportError: No module named 'Tkinter'
or
ImportError: No module named 'tkinter'
then try this changes inside the code
Python 2 | Python 3 |
---|---|
Tkinter | tkinter |
MessageBox | messagebox |
- If NumPy installation fails with this message:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy c-extensions failed. This error can happen for
different reasons, often due to issues with your setup.
then see Troubleshooting ImportError.
© 2022 Yacine BOUKARI
This application is under MIT License.
Read the LICENSE for further details.