Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ Simple Snake Game by Osama (Python Turtle)

Ye ek classic Snake Game hai jo Python ke turtle module se bana hai.
Game simple hai, lightweight hai aur beginners ke liye perfect practice project hai.


๐ŸŽฎ Features

  • โœ… Simple & clean snake game using Python Turtle
  • โœ… Score & High Score tracking (same session ke andar)
  • โœ… Border collision detection (diwar se takrane par game reset)
  • โœ… Snake body grow hota hai jab bhi food khata hai
  • โœ… Speed gradually increase hoti hai jaise jaise score badhta hai
  • โœ… Keyboard controls: W, A, S, D

๐ŸŽฏ Controls

  • โ–ถ๏ธ W โ†’ Move Up
  • โ–ถ๏ธ S โ†’ Move Down
  • โ–ถ๏ธ A โ†’ Move Left
  • โ–ถ๏ธ D โ†’ Move Right

Snake pehle stop position me hota hai.
Koi bhi key dabane ke baad movement start hoti hai.


๐Ÿงฐ Tech Stack

  • Language: Python 3.x
  • Library: Built-in turtle, time, random
    • turtle โ†’ Graphics / game window
    • time โ†’ Delay / game speed
    • random โ†’ Food position random karne ke liye

๐Ÿ—‚๏ธ File Structure

Agar aap repo bana rahe ho, to simple structure kuch aisa ho sakta hai:

snake-game-osama/
โ”œโ”€โ”€ snake_game.py     # Main game file (ye hi code)
โ””โ”€โ”€ README.md         # Project documentation

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages