Welcome to the Snake Game repository! This project showcases a classic Snake game implemented using HTML, CSS, and JavaScript. The game is a recreation of the well-known retro game where players control a snake to eat food and grow longer while avoiding collisions with the walls and the snake's own body.
Check out the live demo of the Snake Game: Demo Link
- Classic Snake gameplay experience.
- Score tracking as the snake eats food and grows longer.
- Game over detection upon collisions with walls or the snake's body.
- Open the game in a web browser.
- Control the snake's direction using arrow keys (up, down, left, right).
- Guide the snake to eat the food to grow longer and increase your score.
- Avoid colliding with the walls or the snake's own body to stay in the game.
- Web browser that supports HTML5 and JavaScript.
- Clone the repository:
git clone https://github.com/ad1tyaSharma/Snake_Game.git
cd Snake_Game
Open the index.html
file in a web browser.
Use the arrow keys (up, down, left, right) to control the snake's direction.
Contributions are welcome! If you find any issues or want to enhance the game, feel free to open a pull request. Make sure to follow the existing coding style and add appropriate improvements to the gameplay or design.
- Fork the repository.
- Create a new branch.
- Make your changes and commit them.
- Push the changes to your fork.
- Open a pull request explaining your changes.
Feel free to reach out to the project owner at [email protected] with any questions or feedback!