Skip to content

JS-GodMode/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ezgif com-optimize(28)

Snake Game

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

Table of Contents

Features

  • Classic Snake gameplay
  • Responsive design for various screen sizes
  • Easy to customize colors, snake speed, and grid size

Installation

  1. Clone the repository:

    bash

    Copy code

    git clone https://github.com/yourusername/snake-game.git

  2. Navigate to the project directory:

    bash

    Copy code

    cd snake-game

  3. Open index.html in your browser to start playing the game!

How to Play

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

Contribution

Contributions are welcome! If you'd like to improve this project:

  1. Fork the repository.
  2. Create a new branch for your feature (git checkout -b feature-name).
  3. Commit your changes (git commit -m 'Add a feature').
  4. Push the branch (git push origin feature-name).
  5. Open a Pull Request, describing the changes you made.

Author

Acknowledgements

Special thanks to:

  • Panayiotis Nicolaou - Inspiration and resources. Check out his work on GitHub.

License

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.