Skip to content
KumuthuAPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

This is a simple implementation of the classic Snake game using Pygame.

Game Overview

The player controls a snake on a bordered plane. As it moves forward, it leaves a trail behind, resembling a moving snake. The game ends when the snake hits the screen border or itself.

Features

  • The snake can move in any direction according to user input.
  • A target appears randomly within the screen which the snake can eat to grow longer.
  • The game keeps track of the player's score which is equal to the length of the snake.
  • The game ends and resets if the snake hits the screen border or itself.

Requirements

  • Python 3.x
  • Pygame

How to Run

  1. Install Python 3.x and Pygame.
  2. Clone this repository.
  3. Run python main.py to start the game.

Controls

  • Use the W, A, S, D keys to control the snake's direction.
  • The game can be closed by clicking the X on the window.

Future Improvements

  • Add different difficulty levels.
  • Add a high score feature.

Enjoy the game!

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages