Skip to content

A personal version of the snake game created for learning PyGame library.

Notifications You must be signed in to change notification settings

olczi095/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snake-game

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.

Game rules

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 :(

Installation

  1. Clone the repo
git clone https://github.com/olczi095/snake-game.git
  1. Change the directory
cd snake-game
  1. Install the required dependencies
pip3 install -r requirements.txt
  1. Run the game
python game.py

Libraries and Technologies

  • Python 3.11.0
  • PyGame 2.1.3.dev8

Screenshots



Let's start the game...

Start Screen

Snake is hungry. Eat a lot of donuts. Don't worry they have no calories.

Active Game Screen

Game over! Check your score and quit or play again.

End Screen

About

A personal version of the snake game created for learning PyGame library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages