🐍 Snake Game
🎮 About the Project
Snake Game is a classic arcade-style web game built using modern web technologies. It features smooth gameplay, responsive controls, and a clean UI. This project demonstrates strong fundamentals of JavaScript, DOM manipulation, and game logic.
🚀 Features
- 🎯 Real-time snake movement
- 🍎 Food generation & score tracking
- ⚡ Smooth controls (keyboard-based)
- 🔁 Game over & restart functionality
- 📱 Responsive design
🛠️ Technologies Used
- HTML5
- CSS3
- JavaScript (Vanilla JS)
▶️ How to Run the Project
- Clone the repository:
git clone https://github.com/your-username/snake-game.git
- Navigate to project folder:
cd snake-game
- Open "index.html" in your browser
(OR use Live Server in VS Code)
🎮 How to Play
- Use arrow keys (⬆️ ⬇️ ⬅️ ➡️) to move the snake
- Eat food to grow and increase score
- Avoid hitting walls or yourself
- Game ends on collision
📁 Project Structure
/snake-game
├── index.html
├── style.css
├── script.js
🧠 Learning Outcomes
- Game logic implementation
- Event handling in JavaScript
- DOM manipulation
- State management
🔮 Future Improvements
- Add sound effects 🎵
- Add levels & difficulty modes
- Mobile touch controls
- High score storage
⭐ Show Your Support
If you like this project, give it a ⭐ on GitHub!