Files

51 lines
3.3 KiB
Plaintext

One car, three people, one tick per line (floors 0..9, doors stay open 3 ticks)
===============================================================================
p0 starts at 0 and wants 6 (UP). p1 starts at 4 and wants 8 (UP). p2 starts at 3 and wants 1 (DOWN).
All three press their button at tick 0.
t=00 car0 floor 0 DOORS_OPEN UP stops [4u, 3d, 6] riders [p0(0->6)]
t=01 car0 floor 0 DOORS_OPEN UP stops [4u, 3d, 6] riders [p0(0->6)]
t=02 car0 floor 0 DOORS_OPEN UP stops [4u, 3d, 6] riders [p0(0->6)]
t=03 car0 floor 0 MOVING_UP UP stops [4u, 3d, 6] riders [p0(0->6)]
t=04 car0 floor 1 MOVING_UP UP stops [4u, 3d, 6] riders [p0(0->6)]
t=05 car0 floor 2 MOVING_UP UP stops [4u, 3d, 6] riders [p0(0->6)]
t=06 car0 floor 3 MOVING_UP UP stops [4u, 3d, 6] riders [p0(0->6)]
t=07 car0 floor 4 DOORS_OPEN UP stops [3d, 6, 8] riders [p0(0->6), p1(4->8)]
t=08 car0 floor 4 DOORS_OPEN UP stops [3d, 6, 8] riders [p0(0->6), p1(4->8)]
t=09 car0 floor 4 DOORS_OPEN UP stops [3d, 6, 8] riders [p0(0->6), p1(4->8)]
t=10 car0 floor 4 MOVING_UP UP stops [3d, 6, 8] riders [p0(0->6), p1(4->8)]
t=11 car0 floor 5 MOVING_UP UP stops [3d, 6, 8] riders [p0(0->6), p1(4->8)]
t=12 car0 floor 6 DOORS_OPEN UP stops [3d, 8] riders [p1(4->8)]
t=13 car0 floor 6 DOORS_OPEN UP stops [3d, 8] riders [p1(4->8)]
t=14 car0 floor 6 DOORS_OPEN UP stops [3d, 8] riders [p1(4->8)]
t=15 car0 floor 6 MOVING_UP UP stops [3d, 8] riders [p1(4->8)]
t=16 car0 floor 7 MOVING_UP UP stops [3d, 8] riders [p1(4->8)]
t=17 car0 floor 8 DOORS_OPEN UP stops [3d] riders []
t=18 car0 floor 8 DOORS_OPEN UP stops [3d] riders []
t=19 car0 floor 8 DOORS_OPEN UP stops [3d] riders []
t=20 car0 floor 8 MOVING_DOWN DOWN stops [3d] riders []
t=21 car0 floor 7 MOVING_DOWN DOWN stops [3d] riders []
t=22 car0 floor 6 MOVING_DOWN DOWN stops [3d] riders []
t=23 car0 floor 5 MOVING_DOWN DOWN stops [3d] riders []
t=24 car0 floor 4 MOVING_DOWN DOWN stops [3d] riders []
t=25 car0 floor 3 DOORS_OPEN DOWN stops [1] riders [p2(3->1)]
t=26 car0 floor 3 DOORS_OPEN DOWN stops [1] riders [p2(3->1)]
t=27 car0 floor 3 DOORS_OPEN DOWN stops [1] riders [p2(3->1)]
t=28 car0 floor 3 MOVING_DOWN DOWN stops [1] riders [p2(3->1)]
t=29 car0 floor 2 MOVING_DOWN DOWN stops [1] riders [p2(3->1)]
t=30 car0 floor 1 DOORS_OPEN DOWN stops [] riders []
Door openings (from the building log):
t=0 car0 opens at 0 heading UP off=[] on=[p0(0->6)]
t=7 car0 opens at 4 heading UP off=[] on=[p1(4->8)]
t=12 car0 opens at 6 heading UP off=[p0(0->6)] on=[]
t=17 car0 opens at 8 heading UP off=[p1(4->8)] on=[]
t=25 car0 opens at 3 heading DOWN off=[] on=[p2(3->1)]
t=30 car0 opens at 1 heading DOWN off=[p2(3->1)] on=[]
Per person (ticks): wait = button to boarding, ride = boarding to arrival
p0 p0(0->6) wait 0 ride 12 total 12
p1 p1(4->8) wait 7 ride 10 total 17
p2 p2(3->1) wait 25 ride 5 total 30