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
................................
..L8B8H8T8......................
..L8B8H8T8........S?S?S?S?......
................X?........X?....
........>1......E?........W?....
........>2......E?........W?....
........>3................W?....
................................
................E?..n?....W?....
................X?........X?....
..................N?N?N?N?......
................................
................................
................................
................................
................................

z=2
................................
..L8B8H8T8......................
..L8B8H8T8......................
................................
................................
................................
................................
....................n?..........
................................
................................
................................
................................
................................
................................
................................
................................

z=3
................................
..L8B8H8T8......................
..L8B8H8T8......................
................................
................................
................................
....................n?..........
................................
................................
................................
................................
................................
................................
................................
................................
................................

z=4
................................
................................
................................
.................._?_?_?_?......
.................._?_?_?_?......
.................._?n?.._?......
.................._?...._?......
.................._?...._?......
.................._?...._?......
.................._?_?_?_?......
................................
................................
................................
................................
................................
................................
