This is game of snake developed in python=3.6
using pygame
.
anaconda
environment (Recommended)Create anaconda environment from terminal
conda env create -f environment.yml
This will install python=3.6
compatible version of pygame
within an anaconda environment called snake
.
Activate the anaconda environment from terminal
conda activate snake
Run the game from terminal
python main.py
This will open a window with the game. Enjoy!
python-pygame
package directlysudo apt-get install python-pygame
afterwards you can start the game by executing the command python main.py
from terminal
or from any python IDE, e.g., spyder, visual studio code, etc.
Note: If you're running the script from IDE, make sure you current working directory is on the current
path.
pygame
, this version would serve an a good example.If you want to contribute to the repository to improve the code, feel free to submit a pull request.