pranjaldhole / snake

Snake game written in python using pygame.
https://pranjaldhole.github.io/snake/
MIT License
1 stars 2 forks source link
game games pygame pygame-application python python3 snake

Snake

This is game of snake developed in python=3.6 using pygame.

Snake - Game play

Installation (for UBUNTU and its variants)

1. Within anaconda environment (Recommended)

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

  2. Activate the anaconda environment from terminal

    conda activate snake
  3. Run the game from terminal

    python main.py

    This will open a window with the game. Enjoy!

2. Alternatively, install python-pygame package directly

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

Game play

Feedback

If you want to contribute to the repository to improve the code, feel free to submit a pull request.