r/dailyprogrammer • u/nottoobadguy • Feb 10 '12
[intermediate] challenge #2
create a short text adventure that will call the user by their name. The text adventure should use standard text adventure commands ("l, n, s, e, i, etc.").
for extra credit, make sure the program doesn't fault, quit, glitch, fail, or loop no matter what is put in, even empty text or spaces. These will be tested rigorously!
For super extra credit, code it in C
23
Upvotes
View all comments
Show parent comment
2
u/drb226 0 0 Feb 11 '12
I've implemented a parser and adventure engine in Haskell for your format. While the engine itself should be powerful enough to handle everything, I didn't spend much time on the parser, so it has a few weaknesses.
https://github.com/DanBurton/hs-adventure-txt