Skip to content

Snake Game build using turtle graphics and oop's concepts and written using python

Notifications You must be signed in to change notification settings

GokulBakkiyarasu/Snake_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Screenshot (4)

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!

About

Snake Game build using turtle graphics and oop's concepts and written using python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages