Welcome to the Classic Snake Game! This project recreates the iconic Snake game using HTML, CSS, and JavaScript. Relive the nostalgia of the classic game where you control a snake, guiding it to eat food and grow longer without colliding into walls or itself.
- Controls: Use the arrow keys (Up, Down, Left, Right) to control the direction of the snake.
- Objective: Guide the snake to eat food pellets scattered throughout the game board. Each time the snake eats a pellet, it grows longer.
- Game Over: The game ends if the snake collides with the walls or itself.
- Scoring: Score points for each pellet eaten. Try to achieve the highest score possible!
- Responsive Design: The game is built with responsive design principles, allowing it to adapt to various screen sizes and devices.
- Dynamic Gameplay: Experience smooth and dynamic gameplay with intuitive controls.
- Score Tracking: Keep track of your score as you play, striving to beat your previous high score.
- Endless Fun: Enjoy endless entertainment with the timeless gameplay of the Snake game.
To run the Snake Game locally on your machine, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/ammar-jesliy/snake-game.git
- Open the
index.html
file in your web browser to start playing the game.
Contributions are welcome! If you have any suggestions for improvements or would like to report a bug, please feel free to open an issue or submit a pull request.
This project was inspired by the classic Snake game and built as a fun project to explore HTML, CSS, and JavaScript. Special thanks to the original creators of the Snake game for their timeless contribution to the world of gaming.