gomezhyuuga / Text-Adventure-Game

Revised and improved version of “Werewolves and Wanderer” text adventure game implemented in Sinatra

Home Page:https://gomezhyuuga.github.io/text-adventure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Werewolves and Wanderer text adventure game

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.

Setup the project

  1. Clone the repository
  2. Create the initial database
rake seed
  1. Run the game
rake server
  1. Access to it through: http://127.0.0.1:4567/ and play

Available commands

While exploring (not in a fight)

  • 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, consume 1 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.

Fighting

  • 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).

Documentation

Docs can be generated by running: rake doc and then accessing to the doc/ folder.

Authors

Fernando Gómez, Luis Ballinas

About

Revised and improved version of “Werewolves and Wanderer” text adventure game implemented in Sinatra

https://gomezhyuuga.github.io/text-adventure


Languages

Language:JavaScript 53.6%Language:Ruby 24.4%Language:CSS 18.3%Language:HTML 3.7%