Skip to content

Latest commit

 

History

History
58 lines (31 loc) · 1.88 KB

File metadata and controls

58 lines (31 loc) · 1.88 KB

🐍 Snake Game

🧠 About the Project

This game was built using Python and the pygame library. It's a fun and interactive way to practice Python programming skills and explore game development concepts. Long story short a classic Snake game built using Python and the pygame library.

🚀 How to Launch the Snake Game

Follow the steps below to clone and run the Snake Game on your local machine.

📦 1. Clone the Repository

To get started, clone the repository to your local machine. Open your terminal or command prompt and run the following command:

git clone https://github.com/Kyle-gi/SnakeGame.git

Make sure to replace your-username with your actual GitHub username.

📁 2. Navigate to the Project Folder

Once the repository is cloned, go to the project directory:

cd SnakeGame

🛠️ 3. Install Dependencies

Before running the Snake game, make sure you have Python and the pygame library installed.

Install Python:

    If you don't have Python installed, download and install it from the official website: Python.org.

    Make sure to check the box that says "Add Python to PATH" during the installation process.

Install pygame:

    Once Python is installed, open your terminal or command prompt and run the following command to install the pygame library:

    pip install pygame

    This will install pygame, which is the library used to create the game.

Now you're ready to run the Snake game!

▶️ 4. Run the Game

Now that everything is set up, you can run the Snake game. Use the following command:

python SnakeGame

Note: Ensure you are using Python 3.x. If both Python 2.x and 3.x are installed, you may need to use python3 instead of python.

🎮 Game Controls

Arrow keys (Up, Down, Left, Right) to control the snake's movement.

Eat the food to grow the snake.

Avoid hitting the walls or your own tail!