This is a simple implementation of the classic Snake game using Python and the Pygame library.
- Python 3.x
- Pygame library (
pip install pygame)
- Ensure you have Python installed on your system.
- Install the Pygame library by running
pip install pygamein your terminal or command prompt. - Download or clone the Python file (
snake_game.py) to your local machine. - Run the Python file (
snake_game.py) using your Python interpreter.
python snake_game.py- 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.
This project is licensed under the [License Name] License - see the LICENSE file for details.