Skip to content

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

Notifications You must be signed in to change notification settings

gomezhyuuga/Text-Adventure-Game

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 53.6%
  • Ruby 24.4%
  • CSS 18.3%
  • HTML 3.7%