Skip to content

MusaTahawar/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Python Snake Game

This is a simple implementation of the classic Snake game using Python and the Pygame library.

Requirements

  • Python 3.x
  • Pygame library (pip install pygame)

How to Run

  1. Ensure you have Python installed on your system.
  2. Install the Pygame library by running pip install pygame in your terminal or command prompt.
  3. Download or clone the Python file (snake_game.py) to your local machine.
  4. Run the Python file (snake_game.py) using your Python interpreter.
python snake_game.py

Gameplay Instructions

  • Use the arrow keys (UP, DOWN, LEFT, RIGHT) to control the direction of the snake.
  • The objective is to eat the red food squares to grow the snake.
  • Avoid colliding with the walls or the snake's own body, or the game will reset.
  • The game speeds up as the snake grows longer.

License

This project is licensed under the [License Name] License - see the LICENSE file for details.


About

This is a simple implementation of the classic Snake game using Python and the Pygame library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages