This is a simple Snake Game built with pure JavaScript, HTML, and CSS. Control the snake to eat the food, grow longer, and try to avoid hitting the walls or yourself!
checkout the game on : SnakeGame
- Classic Snake gameplay
- Responsive design for various screen sizes
- Easy to customize colors, snake speed, and grid size
-
Clone the repository:
bash
Copy code
git clone https://github.com/yourusername/snake-game.git
-
Navigate to the project directory:
bash
Copy code
cd snake-game
-
Open
index.html
in your browser to start playing the game!
- Use the arrow keys to control the direction of the snake.
- Guide the snake to eat the food and grow longer.
- Avoid colliding with the walls or the snake's own body, or the game will be over.
Contributions are welcome! If you'd like to improve this project:
- Fork the repository.
- Create a new branch for your feature (
git checkout -b feature-name
). - Commit your changes (
git commit -m 'Add a feature'
). - Push the branch (
git push origin feature-name
). - Open a Pull Request, describing the changes you made.
- Swarnavo Khanra - Anonav0
Special thanks to:
- Panayiotis Nicolaou - Inspiration and resources. Check out his work on GitHub.
This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License.
You may share, adapt, and build upon this work non-commercially, as long as you credit the author and license your creations under the same terms.