Adventure in UNIX commands

Gary Samuelson garys at bunkerb.UUCP
Thu Feb 23 01:51:16 AEST 1984


Recently, net.unix was treated to an "adventure shell," showing
how the sentence structure of adventure could be used in a
Unix user context.

Then we were treated to another (not THE other) side of the
story -- a script from adventure as it might appear if you
were intereacting with DCL (one of, again not THE command
languages available with VMS).

So, I guess it is time to show the same script, using UNIX-style
commands.

$ adv
Usage: adv [ionsewNSEWudULtTDKfBwlI] [bwrCpmPaBvsednlfkjScRg]

$ adv l
road

$ adv i
building
 
keys
lamp
food
bottle
water

$ adv t k l f W
building

$ adv I
keys
lamp
food
bottle
 water

$ adv O
road

$ adv L
road, stream, building

$ adv -3 D
stream

slit

grate
 locked

$ adv U
grate
 unlocked 

$ adv d
chamber
grate
 unlocked 

$ adv w
cobbles
wicker cage

$ adv t w
cobbles

$ adv q
core dumped

(You get the general idea... or do you?)

A little explanation (totally un-UNIX of me):

1) Each time a UNIX command is executed, it does one thing and then
   exits.  Thus you have to type 'adv' every time.

2) The syntax for the UNIX-style adventure consists of single letter
   verbs followed by single letter objects.  If there are more than
   52 verbs (since case is significant), too bad.  If there are more
   than two verbs which start with the same letter, well, the extra
   ones will have to use letters other than their initials.

3) Each time a command is executed, if one word is sufficient to
   identify the location to the experienced adventurer, that's all
   you get.

4) 'adv L' is UNIX for 'look'.  It gives you three words, maybe as
   many as five.

Gary Samuelson
ittvax!bunker!bunkerb!garys

UNIX is a trademark of Bell Laboratories.
VMS and DCL are trademarks of Digital Equipment Corporation



More information about the Comp.unix mailing list