Instead of Going

version 3/071115 by Mikael Segercrantz

  • Home page
  • Beginning
  • Previous
  • Next

  • Example: * A Short Way Out 2 - Slightly elaborated version of the above example, using smart exit listing.

        "A Short Way Out"

        Include Instead of Going by Mikael Segercrantz.

        Use smart can't go to.

        The Kitchen is a room. "Your basic kitchen, with all the required appliances."

        The Hallway is a room. "A large hallway, leading north towards the sitting room. The door outside is nearby."
        The hallway is east of the kitchen. The can't go north of the hallway is "You have no wish to meet your in-laws at the moment."

        Outside from the hallway is a room called Outside the House. The description of outside the house is "Finally, you've made it outside!".

        Every turn:
            if the location is outside the house, end the game in victory.

        test me with " w / e / n / e / out ".