7 BILLION HUMANS

Level 37: Dangerous Spreadsheeting

Shortest Program

-- 7 Billion Humans (2144) --
-- Level 37: Dangerous Spreadsheeting --
-- Shortest Program: 13 Commands --
a:
step e
b:
pickup c
mem1 = calc mem1 + myitem
write mem1
drop
if e == hole:
    step ne
    if se == hole:
        step e
    endif
    step se
    jump b
endif
if e != wall:
    jump a
endif

Fastest Program

-- 7 Billion Humans (2144) --
-- Level 37: Dangerous Spreadsheeting --
-- Fastest Program: 32 Seconds --
if w == wall:
    step e
endif
a:
step e
b:
mem1 = calc mem1 + c
if e == hole:
    step ne
    if se == hole:
        step e
    endif
    step se
    jump b
endif
if e != wall:
    jump a
endif
pickup c
write mem1
drop
Back