A View of Green Hills
Suppose a game in which the player is wandering an open landscape with long vistas, allowing him to LOOK in some direction, or even look at an adjacent location.
In rules about action handling, "noun" refers to the first object that the player has mentioned in his command, so if the player typed >LOOK WEST, "let the viewed item be the room noun from the location" would be processed as "let the viewed item be the room west from the location", and so on.
We can at need override the default behavior, if it is not going to be appropriate for the player to see the next room over. There is only sky above at any time, so…
This design allows us to create descriptions for rooms (as seen from the outside) which will work regardless of where we're looking from. For instance:
Test me with "look north / look south / look up / look east / east / look west".
>(Testing.)
>[1] look north
You can't see anything promising that way.
>[2] look south
You make out Mycenae that way.
>[3] look up
Above you is bright sky.
>[4] look east
Even from here you can make out the silhouette of the Acropolis.
>[5] east
Athens
>[6] look west
You make out Corinth that way.