https://github.com/nathancordeiro/snakes-game
The classic game of Snakes implemented in python using pygame
https://github.com/nathancordeiro/snakes-game
Last synced: 7 months ago
JSON representation
The classic game of Snakes implemented in python using pygame
- Host: GitHub
- URL: https://github.com/nathancordeiro/snakes-game
- Owner: NathanCordeiro
- Created: 2024-02-13T20:56:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-15T17:19:51.000Z (over 1 year ago)
- Last Synced: 2025-02-07T00:20:21.880Z (8 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Snake Game
This is a classic Snake Game implemented in Python using the Pygame library.
Features
- Snake movement controlled by arrow keys
- Food spawns randomly within the playable area
- Score tracking
- Game over when snake hits the wall or itself
- Option to restart the game after game over
Requirements
- Python 3.x
- Pygame library
Installation
- Clone the repository:
git clone https://github.com/NathanCordeiro/Snakes-Game.git
- Install the required dependencies:
pip install pygame
Usage
Run the game by executing the following command:
python snakes.py
Use the arrow keys to control the movement of the snake. Eat food to grow the snake and increase your score. Avoid hitting the walls or the snake itself.
Press 'Q' to quit the game at any time. Press 'C' to play again after game over.