How to interact with the story:
1st, build Cadventure-txt.c
,
cc -o storytxt Cadventure-txt.c
2nd, run it!
./storytxt baba-yaga-in-space.story
3rd, GO NUTS!
Of note, I didn't write Cadventure-txt.c
. I found it on reddit a million and a half years ago.
The original repository for Cadventure-txt.c
in C seems to have been removed. Here is an example implementation of the story parser in Haskell.
From the original post on reddit,
Indentation is up to the user.
@
are function definitions,>
are print statements,=
are function calls, and-
are option lists. An option list looks like this:
[KEY] - [DESCRIPTION] - [FUNCTION NAME]