/snake---game

SNAKE is a fun and common video game, which does not require a lot of code. This is an implementation of the game.

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

SNAKE

SNAKE is a fun and common video game, which does not require a lot of code. This is an implementation of the game.

Try it here.

Rules of the game

The player controls a red headed snake, which roams around the board picking up green apples. By eating, the snake grows in length.

Use 'w', 's', 'a', 'd', or touch inside the canvas to move the snake.

It's GAME OVER if the snake run into its own tail.

Hitting the border doesn't lose you the game: the snake will simply reappear on the other side!

Usage

Download the repository and open index.html.

Note that this game uses sounds: you can disable sounds after opening index.html.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GNU