Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 862 Bytes

File metadata and controls

31 lines (23 loc) · 862 Bytes

Snake Game

Description

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.

How to Play

  • 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.

Features

  • Smooth snake movement.
  • Increasing length on eating food.
  • Score counter.
  • Game over detection.

Technologies Used

  • HTML5
  • CSS3
  • JavaScript (ES6)

How to Run

  1. Clone or download this repository.
  2. Open index.html in any modern web browser.
  3. Start playing the game!

License

This project is open source and free to use.