Skip to content

muridabuhamed/PythonSnakegame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Snake Game 🐍

This is a classic Snake game built with Python and Tkinter. The goal is to eat as much food as possible without colliding with the walls or yourself. Each piece of food you eat increases your score and the snake's length!

Features

  • Classic snake movement mechanics.
  • Random food generation.
  • Collision detection (walls and snake's body).
  • Score tracking displayed on the screen.
  • Game Over screen.

Customization

You can customize the game by editing the snake_game.py file:

  • Game Speed: Change the SPEED variable for faster or slower gameplay.
  • Snake and Food Colors: Modify the SNAKE_COLOR and FOOD_COLOR variables.
  • Game Dimensions: Adjust the GAME_WIDTH and GAME_HEIGHT variables for a bigger or smaller game area.

Screenshots

pic

About

This is a classic Snake game built with Python and Tkinter. The goal is to eat as much food as possible without colliding with the walls or yourself. Each piece of food you eat increases your score and the snake's length!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages