/SnakeGame

A simple snake game made with vanilla javascript.

Primary LanguageJavaScriptMIT LicenseMIT

Snake Game

A game developed in vanilla javascript.

Steps to run

Make sure you have node installed

*Fork the repository (Click the Fork button in the top right of this page) *Clone the forked repository to your local machine.

git clone https://github.com/<your-username>/SnakeGame.git
cd SnakeGame
yarn
yarn start

This game works by drawing rectangles in canvas while making them seem like food and snake

Feel free to contribute to this project by forking this project

Don't forget to leave a star ⭐

How to contribute:

  • Drop a ⭐ on the Github repository (optional)

  • Before Contribute Please read CONTRIBUTING.md and CODE_OF_CONDUCT.md

  • Create an issue of the project or a feature you would like to add in the project and get the task assigned for youself.(Issue can be any bug fixes or any feature you want to add in this project).

  • Fork the repo to your Github.

  • Clone the Repo by going to your local Git Client in a particular local folder in your local machine by using this command with your forked repository link in place of below given link:
    git clone https://github.com/<enter your git username here>/SnakeGame.git

  • Create a branch using below command. git branch <your branch name>

  • Checkout to your branch. git checkout <your branch name>

  • Add your code in your local machine folder. git add .

  • Commit your changes. git commit -m"<add your message here>"

  • Push your changes. git push --set-upstream origin <your branch name>

  • Make a pull request! (compare your branch with the owner main branch)

Our Amazing Contributors 🌟