<commit_before>The popular Snake game, built in JS for HTML5 Canvas.

Meant to be played using arrow keys.

The `index.*` files in this repo are a demonstration of Snake being played in a full-page canvas.

# Instructions

### Download

Download snake-*.min.js and place it in the root of your website or in a subdirectory.

Include snake-*.min.js:

```html
<script src="/path/to/snake-*.min.js"></script>
```

### Canvas Element<commit_msg>Add Demo instructions to README<commit_after>The popular Snake game, built in JS for HTML5 Canvas.

Meant to be played using arrow keys.

# Demo

You can see an online version of the demo running [here](http://nickpierson.me/snake).

To get the demo working yourself, first clone the repository:

    $ git clone <EMAIL>:ncpierson/Snake.git
    $ cd Snake

Then, run a server from the root directory. Python can do this pretty easily:

    $ python -m SimpleHTTPServer

Lastly, navigate to the demo page. If you used python, go here: [localhost:8000/demo](http://localhost:8000/demo).

# Embedded

### Download

Download snake-*.min.js and place it in the root of your website or in a subdirectory.

Include snake-*.min.js:

```html
<script src="/path/to/snake-*.min.js"></script>
```

### Canvas Element
{'fraction_non_alphanumeric': 0.10843373493975904, 'fraction_numerical': 0.008032128514056224, 'mean_word_length': 3.8862745098039215, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5944295', 'n_tokens_mistral': 393, 'n_tokens_neox': 379, 'n_words': 159}