Skip to content

Silent18Killer/Python_Snake_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-Snake-Game

This is Project Demo

Projects Details

This is a Python Snake Game.

  • food.py -> Manages the food's position and rendering on the game screen.
  • main.py -> Contains the main game loop and initializes the game, handling overall gameplay and user input.
  • scoreboard.py -> Tracks and displays the player's score during the game.
  • snake.py -> Defines the snake's behavior, movement, and rendering on the game screen.

How to Use

  • Run the Python script: Execute the script by running python main.py in your terminal or IDE.
  • Control the snake: Use the arrow keys on your keyboard to move the snake.
  • Eat the food: The snake will grow longer each time it eats the food (represented as a green square).
  • Game over: The game will end if the snake runs into the screen edges or into itself.

Programming languages used:-

python

Developer

@Silent18Killer