Skip to content

This is a simple snake game written in Python. The game uses the arrow keys to control the snake's movements. The snake must eat the food to grow longer and score points.

Notifications You must be signed in to change notification settings

SyedShagufta/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game 🐍💖

Welcome to the Snake Game repository! This project is a simple yet entertaining implementation of the classic Snake game in Python. The game is designed to be easy to understand, making it a perfect introduction to game development using Python.

How to Play 🫵

  1. Clone the repository to your local machine.
  2. Navigate to the project directory.
  3. Run the game by executing the main.py file.
python main.py
  1. The game window will open automatically, and you'll find yourself in control of a snake.

Gameplay Demonstration 🎭

Gameplay.mp4

Controls 🎮

Use the arrow keys to control the snake's movements:

  • Up arrow key: Move the snake up
  • Down arrow key: Move the snake down
  • Left arrow key: Move the snake left
  • Right arrow key: Move the snake right

Game Rules 🕹️🎮

  • The snake starts at the center of the screen.
  • The objective is to eat the food to grow longer and score points.
  • The game ends if the snake collides with the edge of the screen or its own body.
  • The player with the highest score wins the game.

Learning Opportunity 🎯

This project serves as an excellent introduction to game development in Python. It utilizes the Turtle library, a beginner-friendly library for creating graphics and games. If you're new to Turtle, you can learn more about it here.

Feel free to explore the code, tweak it, and enhance the game to suit your preferences. Happy gaming! 🐍🎮

About

This is a simple snake game written in Python. The game uses the arrow keys to control the snake's movements. The snake must eat the food to grow longer and score points.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages