7 BILLION HUMANS

Level 59: Glory Hole

Shortest and Fastest Program

-- 7 Billion Humans (2144) --
-- Level 59: Glory Hole --
-- Shortest Program: 6 Commands --
-- Fastest Program: 12 Seconds --
mem1 = nearest datacube
a:
step mem1
mem2 = foreachdir nw,w,sw,n,s,ne,e,se:
    if mem2 == hole and
     mem1 == 1 or
     mem2 < mem1:
        mem1 = set mem2
        jump a
    endif
endfor
Back