7 BILLION HUMANS

Level 30: Fill the Floor

Shortest Program

-- 7 Billion Humans (2144) --
-- Level 30: Fill the Floor --
-- Alternate Shortest Program: 6 Commands --
-- Runs for about 900 seconds!
mem1 = nearest printer
a:
takefrom mem1
step w,n,s,e
if c == nothing:
    drop
endif
jump a

Fastest Program

-- 7 Billion Humans (2144) --
-- Level 30: Fill the Floor --
-- Fastest Program: 160 Seconds --
mem1 = nearest printer
if n != wall and
 s != wall:
    a:
    takefrom mem1
    b:
    if e != wall or
     s != wall:
        step s,e,se
        jump b
    endif
    c:
    step w,n,s
    if c != nothing:
        jump c
    endif
    drop
    jump a
else:
    d:
    takefrom mem1
    e:
    step nw,w,sw,n,s,ne,e,se
    if c != nothing:
        jump e
    endif
    drop
    jump d
endif
Back