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.
- Classic Snake gameplay
- Simple and clean user interface
- Score tracking
- Video tutorial included
- Python 3.6 or higher
- Flask
- HTML5-compatible web browser
-
Clone the repository:
git clone https://github.com/yourusername/snakery.git cd snakery -
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Run the Flask application:
flask run
-
Open your web browser and go to
http://127.0.0.1:5000/to play the game.
- 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.