Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 899 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 899 Bytes

Snake Game in Python

Welcome to Snake Game in Python! This classic Snake game is implemented using Object-Oriented Programming (OOP) principles and the Turtle graphics library.

Features

  • Navigate the snake using arrow keys.
  • Collect food to increase the snake's length.
  • Avoid collisions with the walls and the snake's own tail.
  • Track your score with the integrated scoreboard.
  • Best score persistence across game sessions.

Requirements

  • Python 3.x
  • Turtle graphics library (usually included in Python standard library)

How to Play

  1. Clone the repository:

    git clone https://github.com/AbdelmalekIla/SnakeGamePython.git
  2. Navigate to the project directory:

    cd SnakeGamePython
  3. Run the game:

    python main.py
  4. Use arrow keys (Up, Down, Left, Right) to control the snake.

  5. Have fun playing!