A simulation to understand the lift control system, implemented using a simple algorithm:

  1. Start going in the direction of the first button pressed, keep track of which direction we're going
  2. When a floor is reached and that button was pressed, stop and open the doors, mark the buttons for this floor as not pressed anymore.
  3.  
    • If there are still more floors that we need to visit that are in the same direction, keep going in that direction.
    • If not and there are still floors we need to visit, move in that direction.
    • If not then we're done and will start at 1 when a button is pressed again.

Simulation Control Buttons:

Floor Buttons: Each of the four floors has 2 buttons, one to go up and the other to go down.

Carriage Buttons: The carriage/lift has a keypad containing 4 buttons for each floor.

Lift Speed: A slider to control the speed of the lift.

StatusIn development
CategoryTool
PlatformsHTML5
Authorsankalp2520
Made withUnity

Leave a comment

Log in with itch.io to leave a comment.