Skip to content

sevalkayikci/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Snake Game

Description

This is a simple implementation of the classic Snake game using Pygame. The player controls a snake that moves around the screen, eating fruit to grow longer. The game continues until the snake collides with a wall or itself.

Features

  • Responsive controls using arrow keys.
  • Fruit spawning at random positions on the screen.
  • Score tracking based on the length of the snake.
  • Game over screen when the snake collides with a wall or itself.

Installation

  1. Clone the repository:

    git clone https://github.com/sevalkayikci/snake-game.git
    
    

Install Python if you haven't already.

Install Pygame using pip:

 ```
  pip install pygame

Run the game:

```
python main.py

Controls Use the arrow keys to control the snake's direction: UP: Move the snake upward. DOWN: Move the snake downward. LEFT: Move the snake leftward. RIGHT: Move the snake rightward.

Contributing Contributions are welcome! If you have any ideas for improvements or find any issues, feel free to open an issue or submit a pull request.

Credits Developed by [Seval Kayikci]

Contact

For any inquiries or feedback, please contact [email protected]

About

simple snake game using python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages