Patrollers

version 12 by Michael Callaghan

  • Home page
  • Beginning
  • Previous
  • Next



  • Section: Preventing access to specific rooms with or without conditions
    We can prohibit access to specific rooms.
        To decide if (R - a Room) is off-limits to (P - a Patroller):
            if R is the quagmire:
                decide yes;
            decide no.
        To decide if (R - a Room) is off-limits to (P - a Patroller):
            if R is the Dog House and P is the cat:
                if the location of the Dog is R:
                    decide yes;
                decide no;
            decide no.
    Note that if we create an absolute bar on a patroller entering a specific room, the patroller will never enter that room even if the patroller is RoomLed or DirectionLed. However, creating a conditional bar on such entry may enable us to create more complex puzzles - for example, the mouse cannot enter the cheese room unless we have got rid of the cat from the room.