A classic Snake Game built using HTML, CSS, and JavaScript.
Control the snake, eat food to grow longer, and avoid collisions to achieve the highest score.
- Classic snake movement
- Food generation at random positions
- Score tracking
- Game over detection on collision
- Keyboard controls
- Smooth gameplay
- Use arrow keys to control the snake
- Eat the food to grow longer
- Avoid colliding with walls or the snake's own body
- The game ends when a collision occurs
- Try to achieve the highest score
- HTML
- CSS
- JavaScript
Snake-Game/
│── index.html
│── style.css
│── script.js
- Add high score system
- Add difficulty levels
- Add sound effects
- Improve UI/UX
- Add mobile controls
Rashi Gour
If you like this project, please give it a star on GitHub.