/SnakeGame

This is a Snake Game built on HTML, CSS and JAVASCRIPT

Primary LanguageJavaScript

🐍🎮Snake Game

The Snake Game 🐍🎮 is a classic and addictive web-based game that brings back the nostalgia of the old Nokia mobile phones. This project is implemented using basic HTML, CSS, and JavaScript, making it a perfect choice for beginners to learn and practice web development.

In this game, you control a snake that grows longer as it consumes food while avoiding collisions with the game boundaries and its own tail. The game becomes progressively challenging as the snake grows longer and faster.

Features

  • Simple and intuitive controls: Use the arrow keys (Up, Down, Left, and Right) to move the snake.
  • Score tracking: Keep track of your score as you consume food items.
  • Game over screen: When the snake collides with the game boundaries or itself, the game ends, and your final score is displayed.
  • Responsive design: Play the game on both desktop and mobile devices with a responsive layout.
  • Speed increment: The snake's speed increases as it grows longer, adding an extra layer of difficulty.

How to play

  • Visit https://hparashar27.github.io/SnakeGame/
  • Enter Player's name
  • Click on start button on same page
  • Now game is ready to play
  • Click on start button to start the game
  • Play game until the game is Over
  • When the game is over, Player's score is reflected in the leaderboard present on the same screen
  • Now in order to play again click on Reset button and start the game again by clicking on the start button
  • A player can play the game as many number of times and at the end of every game his score is reflected along with the previous scores.

Tech Stack

HTML, CSS, JavaScript

Acknowledgements

This Snake Game 🐍🎮 is created by Team Closures (Harsh parashar, Yash Raj Gupta & Nitish Modi) as a fun and educational project for learning basic web development. It was inspired by the classic Snake Game found on early mobile phones and has been adapted for the web.