Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 734 Bytes

File metadata and controls

23 lines (14 loc) · 734 Bytes

Snake Game In Python

Game Start up Game

This is the python version of snake game. The rules are simple which if violated, the game ends:

  • The snake should not collide with the walls.
  • The snake should not feed on itself.

10 game points are awarded if the snake eats the fruit. The goal of the player is to attain the highest score possible.

Game Control Keys

  • Arrow Keys: Moving the snake(Giving the snake direction)
  • Space Bar: Restarting the game, if the game is over.

Running the game

Installing dependencies

pip install -r requirements.txt

Running the game

python snake.py