Skip to content

This is Snake Game, where a snake eats food and grows, but dies when it collides with walls or with its own tail

Notifications You must be signed in to change notification settings

amalraj28/snake_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snake_game

The famous Snake Game, where a snake grows upon eating food and dies when it collides either with the walls or with its own tail, is created using Python programming.

The user controls the snake using arrow keys and upon coming in contact with the food, they earn a point as well as the snake grows by one unit. The high score is updated in the data.txt file which ensures that high score is retained even after the game is turned off.

The program uses the concept of Object Oriented Programming(OOP) to create the various objects required for the game. Turtle library is used for GUI as well as the various objects, mainly the snake, food, scores, etc.

About

This is Snake Game, where a snake eats food and grows, but dies when it collides with walls or with its own tail

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages