Skip to content

Snakery is a classic Snake game built using Python Flask for the backend and HTML for the frontend. The game allows you to control a snake to collect food, grow in size, and avoid collisions with walls or itself.

License

Notifications You must be signed in to change notification settings

iamaparna15/Snakery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snakery

Snakery is a classic Snake game built using Python Flask for the backend and HTML for the frontend. The game allows you to control a snake to collect food, grow in size, and avoid collisions with walls or itself.

Features

  • Classic Snake gameplay
  • Simple and clean user interface
  • Score tracking
  • Video tutorial included

Requirements

  • Python 3.6 or higher
  • Flask
  • HTML5-compatible web browser

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/snakery.git
    cd snakery
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the required packages:

    pip install -r requirements.txt
  4. Run the Flask application:

    flask run
  5. Open your web browser and go to http://127.0.0.1:5000/ to play the game.

Usage

  • Use the arrow keys on your keyboard to control the direction of the snake.
  • Try to collect as many food items as possible to grow your snake and increase your score.
  • Avoid running into the walls or the snake itself.

About

Snakery is a classic Snake game built using Python Flask for the backend and HTML for the frontend. The game allows you to control a snake to collect food, grow in size, and avoid collisions with walls or itself.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published