Skip to content

JamesGrame/Snake-Game-in-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Snake Game using Turtle Library

This is a classic Snake Game implemented in Python using the Turtle library. The game provides a simple and enjoyable experience where the player controls a snake to eat food, grow longer, and avoid colliding with the walls or itself.

Installation:

  1. Download the zip file containing the project.
  2. Extract the contents of the zip file to your desired location.
  3. Ensure you have Python installed on your system. If not, download and install it from Python's official website.
  4. Install the required libraries using pip

Running the Game:

  1. Open the project in your preferred Python IDE or text editor (e.g., PyCharm, VSCode, Sublime Text).
  2. Navigate to the directory where the project is saved.
  3. Run the Main.py file:

Game Controls:

  • Use the arrow keys (W, S, A, D) to control the snake's direction.
  • The objective is to eat the food to grow longer.
  • Avoid hitting the walls or colliding with the snake's own body.
  • The game ends if the snake collides with a wall or itself.

Features:

  • Simple and intuitive gameplay.
  • Score tracking to monitor your progress.

Customization:

  • You can customize the game by modifying various parameters in the code speed of the snake.
  • Feel free to explore and make changes according to your preferences.

Credits:

  • This project is inspired by the classic Snake Game and implemented using Python and the Turtle library.
  • Developed by Muhammad Hamza.

Enjoy playing the Snake Game! 🐍