Elevator Instructions—Cheddar21

  • remain idle at floor 1 until the summons button is pressed.
  • Respond to all Summons Buttons by proceeding to the corresponding floor.
  • When arriving at any floor to which you have been Summoned, stop the elevator and open the door.
  • Following 15 seconds of inactivity on any floor, close the door.
  • If Proceeding up, ignore all Down Summonses.
  • If Proceeding down, ignore all UP Summonses.
  •  light up and display any button when it has been pushed.
  • close door when closed door button is pressed unless motion is detected
  • open door when the open door button is pressed unless currently moving.
  • when the destination button is pressed, proceed to the floor requested.
  • If the summon button is pressed for a passing floor that is requesting the same direction currently moving in, then stop, and repeat the process of opening and closing the doors mentioned previously.
  • Once arrived at the floor the destination button request came from, open the door and wait 15 seconds before responding to the next summons.
  • Once all requests have been completed, wait 30 seconds and proceed back to floor 1.

This entry was posted in Cheddar21, Elevator Instructions. Bookmark the permalink.

1 Response to Elevator Instructions—Cheddar21

  1. davidbdale's avatar davidbdale says:

    This is impressive and pretty clean throughout, Cheddar. There remain some oddities, irrelevancies, and peculiar phrasings that an elevator would have a hard time understanding, but the bulk of the work grades well.

    A couple notes in case you’re considering revising:

    —You never have to tell an elevator to wait, period, for anything. Its default condition is inactivity.

    —your phrase “a passing floor” makes no sense to me, and I suspect to an elevator

    —I don’t see how a passing floor could request “the same direction currently moving in.” That’s just gibberish.

    —If your instructions are worded well, you should never have to tell an elevator to “repeat the process” “mentioned previously.”

    I’ll grade this post as is, Cheddar. Put it into Grade Please or back into Feedback Please following any significant improvements.

Leave a comment