7 BILLION HUMANS

Level 26: Budget Brigade 2

Shortest Program

-- 7 Billion Humans (2144) --
-- Level 26: Budget Brigade 2 --
-- Shortest Program: 9 Commands --
a:
if s == worker and
 myitem == nothing or
 s == printer and
 myitem == nothing:
    takefrom s
endif
if myitem < 50 and
 w == worker:
    giveto w
endif
if myitem >= 50 and
 e == worker:
    giveto e
endif
if myitem != nothing and
 s == shredder:
    giveto s
endif
jump a

Fastest Program

-- 7 Billion Humans (2144) --
-- Level 26: Budget Brigade 2 --
-- Fastest Program: 65 Seconds --
if s == shredder:
    a:
    if myitem != nothing:
        giveto s
    endif
    jump a
endif
if nw == worker and
 ne == worker:
    b:
    if myitem == nothing:
        takefrom s
    endif
    if myitem != nothing:
        giveto n
    endif
    jump b
endif
if w == hole and
 e == hole:
    c:
    if myitem == nothing:
        takefrom s
    endif
    jump c
endif
d:
if myitem != nothing:
    if myitem < 50:
        giveto w
    else:
        giveto e
    endif
endif
jump d
Back