Skip to content

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A classic Snake game implemented in Python using the Pygame library.

Table of Contents

Description

The Snake Game is a classic arcade game where the player controls a snake that moves around the screen and tries to eat food items to grow longer. The game ends if the snake collides with itself or the screen borders. The goal is to achieve the highest score by eating as much food as possible.

Features

  • Simple and intuitive gameplay.
  • Increasing difficulty as the snake grows longer.
  • Score tracking.
  • Game over screen with the option to restart.

Installation

  1. Clone the repository:

    git clone https://github.com/Shantanu700/Snake-game
  2. Install the required dependencies

    pip install Pygame
    
  3. Go to your cloned repository directory

    cd /path/to/your/repository
    

Usage

  1. Run the command.
    python snake.py
    

Make sure you have Python and Pygame installed on your system.

Controls

  • Use arrow keys (Up, Down, Left, Right) to control the snake's direction.
  • Press Esc to exit the game.

Screenshots

Example ImageExample Image Example Image

About

Config files for my GitHub profile.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages