A classic Snake game built using HTML, CSS, and JavaScript. This simple game allows players to control a snake, guiding it to eat food and grow longer while avoiding collisions with the boundary and itself.
- Use the arrow keys on your keyboard to control the direction of the snake.
- Guide the snake to eat the food that appears on the screen.
- Each time the snake eats food, it grows longer.
- Avoid collisions with the boundary of the game area and with the snake itself.
- The game ends when the snake collides with the boundary or itself.
- HTML5
- CSS3
- JavaScript
No installation is required to play the game. Simply open the index.html
file in your web browser to start playing.
Contributions are welcome! If you find any bugs or have suggestions for improvements, please check the list of open issues before submitting a new one.
You can contribute by solving the given issues or by creating new ones and solving them. To contribute, follow these steps:
-
Check for existing issues: Before starting work on a new issue, please check if there's already an open issue for it. If not, feel free to create one.
-
Fork the repository: Click on the "Fork" button at the top right corner of the repository page to create a copy of the repository on your GitHub account.
-
Clone the repository: Clone the forked repository to your local machine using the following command:
-
Make changes: Make your desired changes to the codebase.
-
Commit your changes: Commit your changes with a descriptive commit message using the following command:
-
Push changes: Push your changes to your forked repository on GitHub using the following command:
-
Submit a pull request: Finally, submit a pull request from your forked repository to the original repository. Ensure to provide a clear description of your changes in the pull request.
Thank you for contributing!