Skip to content

rafaelmtro/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A classic Snake game implemented in Python using the Turtle library. The goal is to navigate the snake and eat as much food as possible without hitting the walls or the snake's tail.

Game rules

  • The snake continuously moves forward and never stops.
  • The snake cannot hit the top, bottom, left, or right walls. If it does, the game is over.
  • The snake cannot hit its own tail.
  • The snake earns 1 point for each food item it eats.
  • Each time the snake eats food, its tail increases by 1 block and a new food item is generated at a random position.

Getting started

Prerequisites

  • Python 3
  • Turtle library

Running the game

Clone or download the repository and run the following command in the terminal/command prompt:

python main.py

Built with

Contributing

If you'd like to contribute to the project, feel free to fork the repository and make a pull request.

Author

Rafael Monteiro

License

This project is licensed under the MIT license.

About

Snake is a classic arcade game where the player controls a snake that grows in length as it eats food while avoiding obstacles such as walls and its own tail. This Python implementation uses the Turtle library to create a graphical user interface and provide a fun and interactive gaming experience.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages