Skip to content

Tanyasahu-code/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Snake Game

Built with Python and Pygame

Features

  • Snake movement using arrow keys
  • Random food spawning
  • Snake growth system
  • Score tracking
  • Wall collision detection
  • Self-collision detection
  • Game Over screen

Screenshot

Technologies Used

  • Python
  • Pygame

What I Learned

While building this project, I learned:

  • Game loops
  • Event handling in Pygame
  • Collision detection
  • Working with lists
  • Debugging Python programs
  • Git and GitHub basics

Future Improvements

  • High score system
  • Sound effects
  • Different food types
  • Difficulty levels
  • Restart button

Run the Project

pip install pygame

python main.py

About

Classic Snake Game built using Python and Pygame. It features real-time movement, food spawning, score tracking, and collision detection. This project helped me practice game loops, event handling, and Git/GitHub workflows as I build my Python development skills

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages