A classic Snake game implemented with Python Flask for the backend and JavaScript for the game logic.
- Classic snake gameplay
- Score tracking with high score saved in local storage
- Responsive design
- Pause/Resume functionality
- Game speed increases as score grows
- Clone this repository or download the files
- Install the required dependencies:
pip install -r requirements.txt- Navigate to the project directory
- Run the Flask application:
python app.py- Open your web browser and go to
http://127.0.0.1:5000/
- 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!
- Python Flask (backend)
- HTML5 Canvas
- JavaScript (game logic)
- CSS3 (styling)
This project is open source and available for personal and educational use.