ridsb / snake-game-python

Experience classic Snake Game fun! Control the snake, eat apples to grow, and avoid collisions. Simple controls, customizable settings, and endless entertainment. Play now and challenge yourself to achieve the highest score! 🐍🍏 #SnakeGame #Python #Pygame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake Game

A simple Snake Game implemented in Python using the Pygame library.

image

image

Instructions

  1. Install Pygame:

    pip install pygame
  2. Run the game:

    python snake_game.py
  3. Control the snake using arrow keys: UP, DOWN, LEFT, RIGHT.

  4. Eat apples to grow the snake and increase your score.

  5. Avoid collisions with the snake's own body.

  6. Press 'ESC' to exit the game.

Gameplay

  • The snake starts with 3 segments.
  • Each apple eaten adds 10 points to the score.
  • The game ends if the snake collides with its own body.

Controls

  • UP Arrow: Move the snake up
  • DOWN Arrow: Move the snake down
  • LEFT Arrow: Move the snake left
  • RIGHT Arrow: Move the snake right
  • ESC: Exit the game

Features

  • Customizable constants such as snake size, apple size, and screen dimensions.
  • Game over screen with the option to play again.

Dependencies

  • Pygame: A cross-platform set of Python modules designed for writing video games.

Contributing

Feel free to contribute to the improvement of this Snake Game. Fork the repository, make your changes, and submit a pull request.

About

Experience classic Snake Game fun! Control the snake, eat apples to grow, and avoid collisions. Simple controls, customizable settings, and endless entertainment. Play now and challenge yourself to achieve the highest score! 🐍🍏 #SnakeGame #Python #Pygame


Languages

Language:Python 100.0%