This is my first version of one of the most popular and in my opinion the best games of all time - the iconic SNAKE! I created it mainly to practise the pygame library. I made it myself from the beggining to the end.
The game chooses randomly a donut for your snake. There are six kinds of donuts to choose from and image of snake is always the same. Your goal (as a snake) is to eat as many donuts as you can. Remember that snake's head can't touch the snake's body and the edge of the game board. If it happenes, the snake will stop and your game wil be over :(
- Clone the repo
git clone https://github.com/olczi095/snake-game.git
- Change the directory
cd snake-game
- Install the required dependencies
pip3 install -r requirements.txt
- Run the game
python game.py
- Python 3.11.0
- PyGame 2.1.3.dev8
Let's start the game...
Snake is hungry. Eat a lot of donuts. Don't worry they have no calories.
Game over! Check your score and quit or play again.