Snake Game in Python

This is a small snake game that i created just for fun. The source code is 4 kb in size and the snake game is very simple. You just try to eat the food while preventing the obstacles. There are a few “cheat codes”. The cheat codes and their uses are

longlongsnake : doubles the snake length
getmorescore : increases the score by 99999
doublemyscore : doubles the user score
noobstacles : removes all the obstacles

Snake Game Screenshot
Snake Game Screenshot

This is one of my first python project so don’t expect anything fancy.

The source code is as given below.

Leave a Reply

2 Comment threads
0 Thread replies
Most reacted comment
Hottest comment thread
2 Comment authors
Hindi FontsAshish Recent comment authors
newest oldest most voted
Notify of

Good one. I especially like the fact that the cheat code which removes obstacles has the word “noob” in it.

Hindi Fonts

Nice game. I was searching for similar projects on python and pygame.