size=16x16x10

program 1
*start
    if carrying != NONE then goto *do_put

*do_get
    if check(FRONT) == MATERIAL && material(FRONT) == HEAVY then goto *take
    if find(HEAVY) then goto *walk
    turn RIGHT
    goto *start

*take
    get
    goto *start

*do_put
    if check(FRONT) == ORDER && order(FRONT) == PILLAR then goto *place
    if find(PILLAR) then goto *walk
    turn RIGHT
    goto *start

*place
    put
    goto *start

*walk
    go
    goto *start
endprogram

program 2
*start
    if carrying != NONE then goto *do_put

*do_get
    if check(FRONT) == MATERIAL && material(FRONT) == BALANCED then goto *take
    if find(BALANCED) then goto *walk
    turn RIGHT
    goto *start

*take
    get
    goto *start

*do_put
    if check(FRONT) == ORDER && order(FRONT) == FLOOR then goto *place
    if find(FLOOR) then goto *walk
    turn RIGHT
    goto *start

*place
    put
    goto *start

*walk
    go
    goto *start
endprogram

program 3
*start
    if carrying != NONE then goto *do_put

*do_get
    if check(FRONT) == MATERIAL && material(FRONT) == LIGHT then goto *take
    if find(LIGHT) then goto *walk
    turn RIGHT
    goto *start

*take
    get
    goto *start

*do_put
    if check(FRONT) == ORDER && order(FRONT) == STAIR then goto *place
    if find(STAIR) then goto *walk
    turn RIGHT
    goto *start

*place
    put
    goto *start

*walk
    go
    goto *start
endprogram

z=1
................................
..L8B8H4T8......................
................................
................XH........XH....
..............>1................
..........................W?....
..............>2................
................................
....................n?..........
................X?..^3....XH....
................................
................................
................................
................................
................................
................................

z=2
................................
................................
................................
................XH........XH....
................................
................................
................................
....................n?..........
................................
..........................XH....
................................
................................
................................
................................
................................
................................

z=3
................................
................................
................................
................XH........XH....
................................
................................
....................n?..........
................................
................................
..........................XH....
................................
................................
................................
................................
................................
................................

z=4
................................
................................
................................
................XH_B_B_B_BXH....
.................._B_B_B_B......
.................._Bn?_B_B......
................................
................................
................................
..........................XH....
................................
................................
................................
................................
................................
................................
