a text adventure

"a text adventure" is a text adventure based on the (unfortunately) unfinished tutorial: http://home.hccnet.nl/r.helderman/adventures/htpataic01.html

The code is more or less the same that you'll find on the tutorial, except for the stile and some minor difference in the structure.



It requires awk(1), a C compiler and the GNU readline library.

It builds on OpenBSD without external packages installed btw.


While you can look for the grammar in parseexec.c:/^parseexec, I would ask you not to do so: you may read spoilers.

Instead, try to express what you want to accomplish in plain english, it should work. (note: no punctuation or conjunctions are supported as of now)

Some examples


look around

look guard

go to east

pick up the coin