Giter Site home page Giter Site logo

varda003 / snake-pursuit Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9 KB

The Snake game is a classic arcade game in which the player controls a snake that moves around the screen, eating food (represented by blocks).

JavaScript 87.16% HTML 12.84%

snake-pursuit's Introduction

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.

snake-pursuit's People

Contributors

varda003 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.