This is a classic Snake Game implemented in JavaScript. The goal of the game is to control the snake to eat food, which makes the snake grow longer. The game ends if the snake runs into the walls or into its own body.
- Classic snake game mechanics
- Simple and intuitive controls
- Score tracking
- Responsive design
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
Make sure you have Node.js and npm installed on your machine. You can download them from here.
-
Clone the repository to your local machine:
git clone https://github.com/devshree-bhati/snake-game.git
How to Play NOTE: Start the game by pressing d
- w Move Up
- a Move Left
- s Move Down
- d Move Right