Snake Game using Turtle Graphics and OOP's Concepts
This project is a simple implementation of the classic Snake Game using Python's Turtle Graphics and Object-Oriented Programming concepts. The game involves controlling a snake on a grid, collecting food, and avoiding collision with the walls or the snake's own body. The game is over when the snake collides with the wall or its own body.
Installation
Clone this repository to your local machine using git clone https://github.com/GokulBakkiyarasu/Snake_Game
Ensure that you have Python 3 installed.
Install the turtle module, which is a standard Python library.
Run python main.py to start the game.
How to Play
Use the arrow keys on your keyboard to control the snake's direction.
The snake will move continuously in the direction it is facing.
Collect the food to increase your score and the length of the snake.
Avoid collision with the walls or the snake's own body.
The game is over when the snake collides with the wall or its own body.
Project Structure
main.py - the main Python script for the Snake Game.
food.py - contains the Food class, which represents the food object that the snake must collect.
snake.py - contains the Snake class, which represents the snake object and its behavior.
scoreboard.py - contains the scoreboard class, which represent scorebord object and its behavior
Contributing
If you would like to contribute to this project, feel free to fork the repository and submit a pull request. Your contributions are always welcome!