<commit_before>This is an implementation of _Werewolves and Wanderer_, the first
project in <NAME>'s [Creating Adventure Games on Your Computer][cagyc],
in Rust.

## Motivation

CAGYC is probably the oldest book I've continuously owned and taken
with me as I moved from place to place. I first bought it (or rather,
my parents bought it for me) at a bookstore at some point in the 1980s,
and I always found it inspirational to pore through its pages. But I
never actually _started_ any of the projects in the book, much less
completed them.

In 2017 I was learning [Rust][] and thought a text adventure would be
a nice way to learn the language, so I decided to actually start
the book's first project.

## Quick start

Install Rust, clone the project and run:

```
cargo run
```

If you want to try the web version, you can install [Emscripten][] and
[NodeJS][] and run:

```
npm install
bash build-emscripten.sh
cd static
python -m SimpleHTTPServer
```

Then visit http://localhost:8000/ in your browser.

You can also deploy the `static/` directory to any webserver that
hosts static files.

## Debug mode

On non-release builds, a debug menu is included to aid in debugging.
Press the backtick key in the game's primary exploration mode to
enter it.

[cagyc]: http://www.atariarchives.org/adventure/
[Rust]: https://www.rust-lang.org/
[Emscripten]: http://emscripten.org/
[NodeJS]: http://nodejs.org/<commit_msg>Link to web version in readme.<commit_after>This is an implementation of _Werewolves and Wanderer_, the first
project in <NAME>'s [Creating Adventure Games on Your Computer][cagyc],
in Rust.

You can [try it in your browser][play].

Alternatively, it can also be run as a command-line program.

## Motivation

CAGYC is probably the oldest book I've continuously owned and taken
with me as I moved from place to place. I first bought it (or rather,
my parents bought it for me) at a bookstore at some point in the 1980s,
and I always found it inspirational to pore through its pages. But I
never actually _started_ any of the projects in the book, much less
completed them.

In 2017 I was learning [Rust][] and thought a text adventure would be
a nice way to learn the language, so I decided to actually start
the book's first project.

## Quick start

Install Rust, clone the project and run:

```
cargo run
```

If you want to try the web version, you can install [Emscripten][] and
[NodeJS][] and run:

```
npm install
bash build-emscripten.sh
cd static
python -m SimpleHTTPServer
```

Then visit http://localhost:8000/ in your browser.

You can also deploy the `static/` directory to any webserver that
hosts static files.

## Debug mode

On non-release builds, a debug menu is included to aid in debugging.
Press the backtick key in the game's primary exploration mode to
enter it.

[cagyc]: http://www.atariarchives.org/adventure/
[play]: https://toolness.github.io/werewolves-and-wanderer-rs/
[Rust]: https://www.rust-lang.org/
[Emscripten]: http://emscripten.org/
[NodeJS]: http://nodejs.org/
{'fraction_non_alphanumeric': 0.08225538971807629, 'fraction_numerical': 0.007960199004975124, 'mean_word_length': 4.2543554006968645, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1232459', 'n_tokens_mistral': 939, 'n_tokens_neox': 878, 'n_words': 445}