Skip to content

An implementation of the Conway's Game of Life in Python3 and Tkinter

License

Notifications You must be signed in to change notification settings

YacineSteeve/game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

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

Demo  


⚙️ Technologies employed


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

 

⚠️ Anything went wrong ?

 

  • 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.

 


🏷️ License


© 2022 Yacine BOUKARI

This application is under MIT License.

Read the LICENSE for further details.

About

An implementation of the Conway's Game of Life in Python3 and Tkinter

Topics

Resources

License

Stars

Watchers

Forks

Languages