Skip to content

iiitl/snake-game-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

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.

How to Play

  • 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.

Technologies Used

  • HTML5
  • CSS3
  • JavaScript

Installation

No installation is required to play the game. Simply open the index.html file in your web browser to start playing.

Contributing

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:

  1. 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.

  2. 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.

  3. Clone the repository: Clone the forked repository to your local machine using the following command:

  4. Make changes: Make your desired changes to the codebase.

  5. Commit your changes: Commit your changes with a descriptive commit message using the following command:

  6. Push changes: Push your changes to your forked repository on GitHub using the following command:

  7. 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!