7 BILLION HUMANS

Level 38: Seek and Destroy 3

Shortest and Fastest Program

-- 7 Billion Humans (2144) --
-- Level 38: Seek and Destroy 3 --
-- Shortest Program: 21 Commands --
-- Fastest Program: 28 Seconds --
mem1 = set 99
mem2 = set s
a:
step n
mem3 = set n
if mem3 != nothing:
    if mem3 < mem1:
        mem1 = set mem3
    endif
    jump a
endif
pickup mem1
step mem2
if e != hole:
    drop
    end
endif
step nw
b:
if s < myitem:
    drop
    pickup s
endif
if sw != shredder:
    step w
    jump b
endif
giveto sw
Back