SnakeGame is a Python implementation of the classic Snake game using the Turtle module.
SnakeGame allows users to enjoy the classic Snake game experience right in their Python environment. The game features a snake that grows longer as it eats food, with the objective being to survive as long as possible without colliding with the walls or the snake itself.
Before running the SnakeGame, ensure you have Python installed on your system. You can download Python from the official website.
Additionally, you'll need to have the Turtle
graphics module installed. You can install it using pip:
pip install PythonTurtle
To run the SnakeGame, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/subhranil002/SnakeGame.git
-
Navigate to the directory containing the
main.py
file. -
Run the script using Python:
python main.py
- Use the arrow keys (or W, A, S, D) to control the direction of the snake.
- Avoid colliding with the walls or the snake itself.
- Eat food to grow longer and increase your score.
- Special "Big Food" appears after every 5 points, providing extra score and length.
- Smooth gameplay experience using the Turtle module.
- Dynamic difficulty adjustment based on the player's score.
- User-friendly menu interface with options for playing, viewing controls, resetting high score, and exiting.
Contributions are welcome! If you'd like to contribute to this project, please fork the repository and create a pull request with your proposed changes.
This project is licensed under the MIT License. See the LICENSE file for details.
Made With โค๏ธ