Skip to content

SnakeGame is a Python implementation of the ๐—–๐—น๐—ฎ๐˜€๐˜€๐—ถ๐—ฐ ๐—ฆ๐—ป๐—ฎ๐—ธ๐—ฒ ๐—š๐—ฎ๐—บ๐—ฒ, featuring intuitive controls and dynamic difficulty adjustment. Enjoy the gameplay experience right in your Python environment! ... โค๏ธ

License

subhranil002/SnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

SnakeGame

SnakeGame is a Python implementation of the classic Snake game using the Turtle module.

Introduction

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.

Prerequisites

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

Installation

To run the SnakeGame, follow these steps:

  1. Clone the repository to your local machine:
git clone https://github.com/subhranil002/SnakeGame.git
  1. Navigate to the directory containing the main.py file.

  2. Run the script using Python:

python main.py

Gameplay

  • 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.

Features

  • 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.

Contributing

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.

License

This project is licensed under the MIT License. See the LICENSE file for details.




Made With โค๏ธ

About

SnakeGame is a Python implementation of the ๐—–๐—น๐—ฎ๐˜€๐˜€๐—ถ๐—ฐ ๐—ฆ๐—ป๐—ฎ๐—ธ๐—ฒ ๐—š๐—ฎ๐—บ๐—ฒ, featuring intuitive controls and dynamic difficulty adjustment. Enjoy the gameplay experience right in your Python environment! ... โค๏ธ

Topics

Resources

License

Stars

Watchers

Forks

Languages