Learning different programming paradigms through a simple text adventure.
The original BASIC version is from "Write Your Own Adventure Programs For Your Microcomputer" (http://mocagh.org/loadpage.php?getcompany=usborne-hayes).
Unstructured Version (port of original BASIC version):
- ruby ./lib/welcome.rb
OO Version:
- ruby ./lib/oo/welcome.rb
Prototype Version (incomplete):
- ruby ./lib/proto/welcome.rb
The file "hauntedhouse.bas" is the original BASIC version from the book:
- Originally from http://www.shindigital.com/hauntedhouse.txt (with mistakes corrected)
- You can run it using a BASIC Interpreter, such as: http://www.calormen.com/applesoft/
- See http://www.shindigital.com/site/blogpost/56
See also:
- haunted_house.rb by Joshua Clulow: https://gist.github.com/628124
- JavaScript port: http://www.robertgomez.org/sites/default/files/Haunted-House.js via http://www.robertgomez.org/content/haunted-house-text-adventure
- Prototype version based on Avdi Grimm's blog post: https://practicingruby.com/articles/adventure-in-prototypes?u=dc2ab0f9bb
The original source code (under lib and spec) is licensed under the MIT license. See the LICENSE file for full details.