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.
Follow the steps below to clone and run the Snake Game on your local machine.
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.
Once the repository is cloned, go to the project directory:
cd SnakeGame
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!
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.
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!