Skip to content

Sagar2366/season2-snake_game

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web-based Snake Game

A classic Snake game implemented with Python Flask for the backend and JavaScript for the game logic.

Features

  • Classic snake gameplay
  • Score tracking with high score saved in local storage
  • Responsive design
  • Pause/Resume functionality
  • Game speed increases as score grows

Installation

  1. Clone this repository or download the files
  2. Install the required dependencies:
pip install -r requirements.txt

Running the Game

  1. Navigate to the project directory
  2. Run the Flask application:
python app.py
  1. Open your web browser and go to http://127.0.0.1:5000/

How to Play

  • Use the arrow keys to control the snake
  • Eat the red food to grow longer and earn points
  • Avoid hitting the walls or yourself
  • The game gets faster as your score increases
  • Try to beat your high score!

Technologies Used

  • Python Flask (backend)
  • HTML5 Canvas
  • JavaScript (game logic)
  • CSS3 (styling)

License

This project is open source and available for personal and educational use.

About

A web-based Snake Game using Flask and JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 69.0%
  • CSS 20.1%
  • HTML 8.1%
  • Dockerfile 2.3%
  • Python 0.5%