Skip to content

This is a simple Snake game built using Python and the `turtle` module. The game allows the player to control the snake, eat food to grow, and avoid colliding with the walls or itself.

Notifications You must be signed in to change notification settings

MostafaHima/Snak-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

This is a simple Snake game built using Python and the turtle module. The game allows the player to control the snake, eat food to grow, and avoid colliding with the walls or itself.

Features

  • The snake moves on the screen and grows each time it eats food.
  • The player can control the snake's direction using the arrow keys.
  • The game resets when the snake collides with itself or the wall.

Requirements

  • Python 3.x
  • turtle module (usually comes pre-installed with Python)

How to Run

  1. Ensure that Python is installed on your machine.
  2. Save the provided code in a Python file (e.g., snake_game.py).
  3. Run the script using the following command:
python main.py

About

This is a simple Snake game built using Python and the `turtle` module. The game allows the player to control the snake, eat food to grow, and avoid colliding with the walls or itself.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages