Skip to content

milanprajapati571/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A classic Snake Game built with HTML, CSS, and JavaScript. Control the snake with arrow keys to eat food, grow longer, and avoid collisions. Fun and simple browser game to practice front-end coding.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors