Elevator riddle- Ericcartman

The elevator must listen and respond to the buttons on the outside and inside of the elevator

The inside buttons consist of a list of floors, and the outside has an up and down button. (Except the top floor and bottom floor, where there’s only one button to summon the elevator.)

The elevator is to arrive at the destination of the button being pushed from outside it, and may only pick up additional passengers on the way only if they are traveling the same direction (up or down). 

If going up, Ignore all down summons

If the elevator is going down, Ignore all up summons. 

The elevator will respond to passengers in the order they click buttons. 

After the passenger is inside, they will be taken to the floor they press on the inside buttons of the elevator.

The elevator will never stop at a floor it is not called to.

The elevator will rest at its last stop until it is summoned.

The elevator will open the door 1 second after it reaches its floor.

The elevator will wait 8 seconds before closing the door.

This entry was posted in Riddle. Bookmark the permalink.

3 Responses to Elevator riddle- Ericcartman

  1. davidbdale's avatar davidbdale says:

    These statements for the most part accurately describe the current situation, but they ARE NOT:
    A set of INSTRUCTIONS to an ignorant elevator that needs to be programmed to operate as desired.

    FOR EXAMPLE:
    1. When the UP BUTTON is lit on any floor above where the car is positioned, proceed immediately to that floor, not stopping at any intervening floor.

  2. davidbdale's avatar davidbdale says:

    Check out Sunflower828’s post. It’s closer to the ideal set of Instructions.

    Elevator Riddle- Sunflower828

  3. davidbdale's avatar davidbdale says:

    I like so much of what is going on here, EricCartman. In many cases, you provide INSTRUCTIONS to the elevator, among the best I’ve read. However, in other examples, you’re describing situations, which the elevator would not recognize as instructions. Yes, the post is supposed to provide INSTRUCTIONS to the ELEVATOR (who is your reader here.) And Yes, the elevator reads your instructions and follows them.

    The elevator will not extrapolate from examples to create rules for itself. You need to spell out the rules as GENERAL INSTRUCTIONS and identify the EXCEPTIONS to the rules also in general terms.

    Some examples in no particular order:

    —In response to any CALL button, PROCEED to that floor and OPEN the doors.
    —You have three modes: AT REST, GOING UP, GOING DOWN.
    —When you are GOING DOWN, IGNORE any GOING UP requests.

    See what I mean?

    Provisionally graded out of gratitude for your outstanding contribution to the project and your effort. You may still earn a Regrade by transforming your descriptions of elevator operations into INSTRUCTIONS written for the elevator (as if the Elevator were your reader and needed to be told how to operate).

Leave a reply to davidbdale Cancel reply