Skip to content

Instantly share code, notes, and snippets.

@Blecki
Created April 20, 2014 12:08
Show Gist options
  • Select an option

  • Save Blecki/11112633 to your computer and use it in GitHub Desktop.

Select an option

Save Blecki/11112633 to your computer and use it in GitHub Desktop.
"RedditExample" by Blecki
The bland enclosure is a room. "You are in a small, bland enclosure. The walls are pure white. There is naught but a small, white door and a dresser (also white). It's as if someone stopped describing the room halfway.."
The dresser is a scenery supporter in the bland enclosure with description "This is really just a sketch of a dresser. Upon closer examination, the lines aren't even straight. It does, however, have a very nice drawer."
The drawer is a closed openable container. The drawer is part of the dresser. The description is "The qualities that an item must have to be considered a drawer, that is, the ability to open, close, and contain small items, are exactly the qualities this drawer has."
The vast expanse is a room. "This infinite expanse is so infinite that you go instantly insane."
The small white door is a locked lockable door with description "This is a rather ordinary, rather white, little door.[if the small white door is locked] It seems to be locked, but there isn't any sort of keyhole.[end if]".
The small white door is east of the vast expanse and west of bland enclosure.
The torn photograph is in the drawer.
The description is "This small tattered photograph is a photograph of a snowy landscape in a blizzard. Actually. It's a sheet of paper."
Understand "sheet", "of", "paper" as the torn photograph.
After examining the torn photograph for the first time:
Now the printed name of the torn photograph is "sheet of paper";
Now the description of the torn photograph is "It's a plain white sheet of paper. Bit ragged around the edges.";
If the small white door is locked:
Say "The door clicks. How odd.";
Now the small white door is unlocked.
Every turn when the location of the player is the vast expanse:
End the story.
Test me with "open drawer / x torn / enter door".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment