/SnakeGame

Snake game made using the pygame module in python

Primary LanguagePython

SnakeGame

  • Clone of classic snake game made using pygame module

Different files in game

  1. apple.py: Class for representing an apple and its functions
  2. block.py: Class for representing one part of the snake and its functions
  3. snake.py: Class for representing whole snake body and its functions
  4. game.py: Main file which has game loop

How to run it?

Run the game.py file

How to play?

Move the snake with the arrow keys making sure to not crash into the walls or to your own body. Press 'p' to pause the game.