Snake Game 🐍
A classic Snake game built with HTML5, CSS3, and JavaScript. Play directly in your browser with no dependencies required!
How to Play
- Open
snake.html in your web browser
- Use arrow keys (⬆️ ⬇️ ⬅️ ➡️) to control the snake
- On mobile devices, swipe in the direction you want to move
- Eat the red food to grow and increase your score
- Avoid hitting the walls or yourself
- Try to beat your high score!
Features
- 🎮 Responsive controls (keyboard and touch)
- 📊 Score tracking with persistent high score
- 🎨 Modern, gradient design
- 📱 Mobile-friendly
- 🔄 Easy restart functionality
- 👁️ Snake eyes that follow movement direction
Quick Start
Simply open the file in any modern web browser:
# On Mac
open snake.html
# On Linux
xdg-open snake.html
# On Windows
start snake.html
Or just double-click the snake.html file!
Game Controls
- Arrow Keys: Move the snake (Up, Down, Left, Right)
- Mobile: Swipe in the direction you want to move
- Restart Button: Start a new game anytime
Enjoy the game! 🎮