From: Jim Menard Date: 2005-10-02T22:35:20+09:00 Subject: [SOLUTION] Lisp Game (#49) Boy, was this fun. My solution, RADS, is at . From the engine file: # This file defines the game mechanics, and is independent of the specifics of # the game. For a sample game definition including custom verbs, see game.rb. # # Features: # - inventory or i # - look or l, also accepts "look at thing" # - examine or x prints long description # - "it": take it, examine it, look at it # - walk or go # - short direction names (n, s, e, w, u, d) # - short direction names are also verbs so you can just type "w" to go west # - altername names for things ("whiskey bottle", "bottle", "whiskey") # - decorations, which are objects that can't be taken. # Try "x wizard" or "look at couch". # - game-specific verbs are defined in the game file, not here # - A decoration or thing without a short_desc won't be output as part of # the room description # - Any object with no names array defined in the initialization proc will # have one created for it containing the short_desc # - Containment (things within other things) is implemented and contents # of containers like the bucket will be printed, but "put in"/"take out" # is not yet implemented. # # To do: # - Fix the fact that you can't examine the door in the garden # - Implement "put in"/"take out" # - Write a "put x in y" verb # - Understand prepositions. In addition to "splash bucket [on] wizard" and # "dunk bucket [in] well", I'd like to allow "splash wizard with bucket". From the game file: # features: # - game-specific verbs are defined here, not as part of the rads library # - dunk, weld, and splash take (but ignore) prepositions. Try # "splash bucket on wizard" or "splash bucket wizard" Jim -- Jim Menard, jim.menard@gmail.com, jimm@io.com http://www.io.com/~jimm