An open API service indexing awesome lists of open source software.

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

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


  1. Clone the repository:

git clone https://github.com/NathanCordeiro/Snakes-Game.git


  1. 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.