classic-Snake-game-py

Snake Eater

A classic Snake game implemented in Python using Pygame. Navigate the snake to eat food, grow longer, and avoid collisions with the walls or itself. The game includes a main menu, adjustable difficulty settings, and a game-over screen.

Features

Installation

  1. Clone the repository:

     git clone https://github.com/Esmail-sarhadi/classic-Snake-game-py.git
     cd snake-eater
    
  2. Install Pygame:

    Make sure you have Python installed on your system. Then, install Pygame using pip:

     pip install pygame
    

How to Play

  1. Run the game:

     python snake_game.py
    
  2. Controls:

    • Arrow keys or WASD: Control the direction of the snake.
    • ESC: Quit the game.
  3. Objective:

    • Guide the snake to eat the food, which appears at random positions on the screen.
    • Each time the snake eats food, it grows longer, and the score increases.
    • Avoid running into the walls or the snake’s own body.

Screenshots

Menu Gameplay Game Over

Contributing

Contributions are welcome! If you have suggestions for improvements or find bugs, please open an issue or submit a pull request.

Profile

Check out my GitHub profile: Esmail Sarhadi

View this project on GitHub: classic-Snake-game-py

Donation

If you find this project helpful, consider making a donation:

Crypto donation button by NOWPayments

License

This project is licensed under the MIT License.

Acknowledgements


Feel free to customize this README file according to your needs. Happy coding!