Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 1.84 KB

README.md

File metadata and controls

62 lines (41 loc) · 1.84 KB

Snake Game

This is a classic Snake game implemented in Python using Canvas API

Demo

Check out the live demo of the project here.

Description

The Snake game is a classic arcade game in which the player controls a snake that moves around the screen, eating food (represented by dots). As the snake consumes food, it grows longer. The game ends when the snake collides with the walls of the screen or with its own body.

Features

  • Classic Snake gameplay experience
  • Simple controls using arrow keys
  • Random generation of food on the screen
  • Increasing difficulty as the snake grows longer

Installation

  1. Make sure you have Python installed. You can download it from Python's official website.
  2. Install the Pygame library by running the following command:
    pip install pygame
  3. Clone this repository to your local machine using:
    git clone https://github.com/yourusername/SnakeGame.git

Usage

  1. Navigate to the project directory.
  2. Run the following command to start the game:
    python snake.py
  3. Use the arrow keys to control the snake:
    • Up arrow: move the snake upwards
    • Down arrow: move the snake downwards
    • Left arrow: move the snake to the left
    • Right arrow: move the snake to the right
  4. Try to eat as much food as possible without colliding with the walls or the snake's body.

Screenshots

Gameplay Screenshot

Credits

  • This game was created by Varda as a personal project.
  • The Snake icon used in the game was created by Varda Hanwant.

License

This project is licensed under the MIT License - see the LICENSE file for details.