Skip to content
/ snake Public

Classic snake game - with features like score and level tracking, increasing difficulty with levels, collision detection to end the game, random food placement, and directional movement for the snake

Notifications You must be signed in to change notification settings

ydahal1/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Snake Game Demo

This is a simple snake game developed in Python using Pygame. It includes the following features:

  • Keep tracks of score and level.
  • Increases speed as the level goes up.
  • Quits the game when the snake hits the wall.
  • Quits the game when the snake hits its own body.
  • Food appears at random places.
  • The snake travels only towards the direction it is facing.

Try it out

To try this game, follow these steps:

  1. Clone the repository.
  2. Install pygame pip install pygame
  3. Run python3 snake.py
  4. Use arrow keys to change the direction of the snake's movement.

Enjoy playing the Snake game !!!

About

Classic snake game - with features like score and level tracking, increasing difficulty with levels, collision detection to end the game, random food placement, and directional movement for the snake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages