7 Billion Humans

7 Billion Humans

Lihat Statistik:
A'den 12 Agu 2019 @ 12:15am
Year 57 - Neighborly Sweeper - error in my solution?
I believe my code works well, but the game insists something is wrong. Can anyone tell me what am i doing wrong?

-- 7 Billion Humans (2214M) --
-- 57: Neighborly Sweeper --

a:
step w
if w == wall:
jump b
else:
jump a
endif
b:
c:
step e
if c == datacube:
mem1 = set 0
mem2 = foreachdir nw,w,sw,n,s,ne,e,se:
if mem2 == datacube:
mem1 = calc mem1 + 1
endif
endfor
pickup c
write mem1
drop
endif
if e == wall:
end
endif
jump c


< >
Menampilkan 1-1 dari 1 komentar
TheVoiid 12 Agu 2019 @ 11:19am 
I believe that when a worker is scanning around for a datacube (foreachdir) and another worker is standing on, or has picked up, one of those surrounding datacubes it won't be counted as a datacube. That could be the problem.

In the beginning you could also write:

a:
if w != wall
step w
jump a
endif
b:
< >
Menampilkan 1-1 dari 1 komentar
Per halaman: 1530 50