This is a classic Snake Game implemented using HTML, CSS, and JavaScript. Control the snake to eat food, grow longer, and avoid running into the walls or itself. It’s a fun and interactive project to practice front-end web development and game logic.
- Use the arrow keys (↑, ↓, ←, →) to move the snake.
- Eat the food to grow longer and increase your score.
- Avoid hitting the walls or the snake’s own body.
- The game ends if the snake crashes.
- Smooth snake movement.
- Increasing length on eating food.
- Score counter.
- Game over detection.
- HTML5
- CSS3
- JavaScript (ES6)
- Clone or download this repository.
- Open
index.htmlin any modern web browser. - Start playing the game!
This project is open source and free to use.