Skip to content

shivanisingh7/Snake_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Snake_game

Snake Game using Tkinter

This is a simple Snake game implemented using Tkinter in Python.

Features

  • Classic Snake game where the player controls a snake to eat food and grow.
  • The snake grows longer each time it eats food and the player's score increases.
  • The game ends when the snake collides with the walls or itself.
  • Controls: Use arrow keys (up, down, left, right) to change the snake's direction.

Requirements

  • Python 3.x
  • Tkinter (Usually comes pre-installed with Python)

How to Run

  1. Clone the repository or download the source code.

  2. Navigate to the directory containing the source code.

  3. Run the following command in your terminal or command prompt:

    python snake_game.py
    
  4. Enjoy playing the Snake game!

File Description

  • snake_game.py: Contains the main code for the Snake game.
  • README.md: Provides information about the game and how to run it.

Controls

  • Use the arrow keys to control the direction of the snake.
  • Press any arrow key to start the game.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages