Skip to content

gavin-barro/SnakeProj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Snake Game 🐍

A simple Snake game built using Python's turtle module.

Features

  • Classic snake movement (Up, Down, Left, Right).
  • Food spawning for the snake to grow.
  • Score tracking with a scoreboard.
  • Game over when the snake collides with the wall or itself.

Installation

  1. Ensure you have Python installed (Python 3 recommended).
  2. Clone this repository:
    git clone https://github.com/your-username/snake-game.git
    cd snake-game

Install dependencies (if any, but turtle is included with Python).

How to Play

python main.py

Use arrow keys to move the snake.

Eat food to grow and increase your score.

Avoid hitting walls and yourself!

File Structure

main.py - Runs the game.

snake.py - Controls snake movement.

food.py - Handles food spawning.

scoreboard.py - Displays and updates the score.

Author

Gavin Barro

About

Simple Snake game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages