Skip to content

MuhammedDaud/Snake-Game-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Snake Game

Welcome to the Snake Game! This is a classic arcade game where you control a snake to eat fruits and grow. The objective is to achieve the highest score possible without colliding with the walls or the snake’s own body.

Features

  • Classic Snake Gameplay: Navigate the snake to eat fruits and grow longer.
  • Multiple Levels: The game progresses with increased difficulty as you score more points.
  • Beautiful Graphics: Enhanced visuals with smooth animations and color transitions.
  • High Scores: Track your score and aim for the highest possible score.

Game Instructions

  1. Control the Snake:

    • Use the UP arrow key to move the snake up.
    • Use the DOWN arrow key to move the snake down.
    • Use the LEFT arrow key to move the snake left.
    • Use the RIGHT arrow key to move the snake right.
  2. Objective:

    • Eat the fruits that appear on the screen. Each fruit increases your score by 10 points and makes the snake longer.
    • Avoid collisions with the walls and the snake’s own body to keep playing.
  3. Game Over:

    • The game ends if the snake collides with the walls or itself. Your final score will be displayed on the screen.

Installation

  1. Ensure you have Python and Pygame installed on your system.
  2. Download the snake_game.py file.
  3. Open a terminal or command prompt.
  4. Navigate to the directory where the snake_game.py file is located.
  5. Run the game with the following command:
    python snake_game.py

Requirements

  • Python 3.x
  • Pygame library

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages