Skip to content

lfazioli/Snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A simple Snake game built with Python and Pygame. Move the snake, eat the food, and try to get the highest score possible. The game features sound effects and a clean, minimal interface.

Features

  • Classic Snake gameplay
  • Sound effects for eating food and game over
  • Score display
  • Restart or quit after game over

Requirements

  • Python 3.7 or higher
  • Pygame library

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/snake-pygame.git
    cd snake-pygame
    
  2. Install dependencies:

    pip install pygame
    
  3. Make sure you have the eat.wav and gameover.wav sound files in the project directory.
    You can use your own sounds or download free .wav files from freesound.org.

Usage

Run the game with:

python3 snake.py

Controls

  • Arrow keys: Move the snake
  • SPACE: Restart after game over
  • ESC: Quit the game

About

Snake game in python with pygame

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages