Snake

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

Snake

Installation (for UBUNTU and its variants)

  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.