This is a Ruby web application that allows playing the revised and improved version of “Werewolves and Wanderer” text adventure game as explained by Tim Hartnell in the first 15 chapters of his 1983 book entitled: Creating Adventure Games On Your Computer
Developed using Sinatra as the web framework and SQLite as database.
- Clone the repository
- Create the initial database
rake seed
- Run the game
rake server
- Access to it through: http://127.0.0.1:4567/ and play
north, south, east, west
: move to north, south, east or west, respectively.up, down
: if there is any stair, move upstairs or downstairs, respectively.tally
: get the stats so far, including how many monsters have you killed, food amount, life points and your strength.consume
: if you have food, consume1 unit
.pick_up
: if there is a treasure in the room, pick it up.magic
: use a magic power to move to another random room.
fight
: choose to fight a monster if it is present in the room.run
: run from the monster if you don't want to fight. You have to choose where to run (north, south, east, west).
Docs can be generated by running: rake doc
and then
accessing to the doc/
folder.
Fernando Gómez, Luis Ballinas