snake-game

๐Ÿ Snake Game in Python

๐Ÿ“ Submitted To:

Instructor: Dr. Prateek Raj Gautam


๐Ÿ™‹โ€โ™‚๏ธ Submitted By:

Name: Anurag Kumar Singh
SAP ID: 590018370

๐Ÿ“Œ Project Title:

Snake Game in Python

๐Ÿ“ Description:

This is a classic Snake Game built using Python and the Pygame library. The game allows users to control a snake that grows longer as it eats food. The objective is to avoid running into walls or the snakeโ€™s own body while trying to eat as much food as possible to increase your score.

Key Features:

โš™๏ธ Installation:

  1. Clone the repository: ```bash git clone โ€œhttps://github.com/anurag815311/snake-game.gitโ€

  2. Navigate to the project directory:
    cd snake-game-python
    
  3. Install required libraries: You need to have Python installed on your system. Install the required dependencies using pip:
    pip install pygame
    

##๐Ÿš€ Usage:

  1. Run the game: To start the game, run the Python script:
    python snake_game.py
    
  2. Controls:
    • Use the Arrow keys to navigate the snake.
    • The game ends if the snake hits the wall or its own body.
    • When the game is over, press โ€˜Cโ€™ to play again or โ€˜Qโ€™ to quit.
  3. Game Over: The game will display a message and your score when you lose. You can choose to restart the game or quit.

๐ŸŽฎ Game Screenshots:

Gameplay Screenshot Gameplay Screenshot

๐Ÿ“š Libraries Used:

โœจ Acknowledgments: