An open API service indexing awesome lists of open source software.

https://github.com/sensational-code/snake-game

A rudimentary snake game side project I try to set aside ~25 minutes (1 pomodoro) a day to work on.
https://github.com/sensational-code/snake-game

javascript

Last synced: 20 days ago
JSON representation

A rudimentary snake game side project I try to set aside ~25 minutes (1 pomodoro) a day to work on.

Awesome Lists containing this project

README

          

# snake-game
A rudimentary snake game side project I try to set aside ~25 minutes (1 pomodoro) a day to work on.

#### [Try it here](https://rawgit.com/Sensational-Code/snake-game/master/index.html)

## How to play
Control the snake to eat as much candy as you can to beat your high score!

Try not to collide with yourself or the walls, or you'll get a game over!

## Controls
Use the `UP`, `DOWN`, `LEFT`, and `RIGHT` arrows to control the snake.

To restart after a game over, click the game or press `SPACEBAR`.

## Installing
Clone this repo and run a local web server to host the index.html.

#### On Mac/Linux:

```
cd
git clone https://github.com/Sensational-Code/snake-game.git
cd snake-game
python -m SimpleHTTPServer
```

Replace with your desired directory and with your desired port number.

Then visit localhost: in your web browser of choice.