Elevator Riddle – MillyCain

  • When a Summoning Button is pressed, proceed to the corresponding floor of the button press.
  • Stop and Open the doors when you reach a floor that corresponds with either a Summoning or Destination button press.
  • Proceed to floor that corresponds with a Destination Button press.
  • When fulfilling a Destination Button request, ignore all Summoning Button presses EXCEPT for ones that will be traveling in the same direction as the Destination Floor.
  • When not fulfilling a Destination Button request, Summoning Button presses are to be fulfilled in the order in which they were pressed.
  • Close Door after 7 seconds of inactivity.
  • Close Door after a Destination Button is pressed
  • Close Door before proceeding to a floor where a Summoning Button was pressed.
This entry was posted in Riddle. Bookmark the permalink.

4 Responses to Elevator Riddle – MillyCain

  1. millycain's avatar millycain says:

    I would like feedback on 2 things:
    Is this submission what the assignment was asking for? This is a late submission and I know there was some confusion with the original assignment, so I just want to make sure that I am essentially answering the right thing.

    I also would like feedback on how clear I was. I struggled a lot with not using language like ‘For Example’ so I’m wondering if this hurdle caused my language to be confusing to someone who isn’t me.

    Thank you in advance 🙂

    • davidbdale's avatar davidbdale says:

      This is a brilliant advance in the project, MillyCain. It’s truly a list of instructions, and the language is appropriate to the job.

      I notice that when you go to “passive voice” instructions like “requests are to be fulfilled,” a purely logical elevator might not take that as a command since who was to do the fulfilling is not specified.

  2. davidbdale's avatar davidbdale says:

    I don’t understand why different language is used for very similar instructions 1 and 3

    When a Summoning Button is pressed, proceed to the corresponding floor of the button press.

    Proceed to floor that corresponds with a Destination Button press.

    If #3 works, can’t #1 be . . . ? :

    Proceed to floor that corresponds with a Summoning Button press.

  3. davidbdale's avatar davidbdale says:

    No Summoning Button press travels in any direction, so your instruction is misleading:

    When fulfilling a Destination Button request, ignore all Summoning Button presses EXCEPT for ones that will be traveling in the same direction as the Destination Floor.

    By the same token, the Destination Floor isn’t traveling is any direction, either.

Leave a reply to davidbdale Cancel reply