Skip to content

This is an implementation of the classic snake game in python using the pygame library

Notifications You must be signed in to change notification settings

AbhinavMadJ/Snake-game

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Snake-game

classic snake game implemented in python

Prerequisites

  • Python 3 installed on your system
  • Pygame library installed

To install Pygame, run the following command in your terminal:

pip install pygame

Running the game

  1. Clone the repository to your local system
git clone https://github.com/oceanlord-jet/Snake-game.git

2.Change into the project directory:

cd Snake-game

3.Run the snakegame.py file:

python snakegame_updated.py

Playing the game

  • Use the arrow keys to control the movement of the snake
  • The objective of the game is to eat as many apples as possible without hitting the walls
  • If the snake hits a wall , the game is over
  • The game has a splash screen with a start button to start the game
  • The score is displayed on the title bar

About

This is an implementation of the classic snake game in python using the pygame library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%