Adjacent and structuring world

Include Versatile Listing by Daniel Stelzer.

Definition: a direction (called the way) is appropriate if the room-or-door (way) from the location is a room or the room-or-door (way) from the location is an open door.

Definition: a direction (called the way) is blocked if the room-or-door (way) from the location is a closed door.

To say distant details of (the place - a room):
    if the place is visited, say "[the place]";
    otherwise say "somewhere new".

To list available directions:
    say "From here you can go ";
    if there is an available direction:
        print a list of "[the direction being listed] to [distant details of the room (direction being listed) from the location]" for available directions, disjunctive;
    otherwise:
        say "nowhere";
    if there is a blocked direction:
        say ", and there are blocked doors [the list of blocked directions]";
    say ".".

After looking:
    list available directions;
    continue the action.

This extension isn’t publicly released yet but I’m attaching it here.
Versatile Listing-v1.i7x (5.8 KB)

2 Likes