7 Billion Humans

7 Billion Humans

View Stats:
Max Aug 29, 2018 @ 6:14am
61 - Lazy Pathways, solution not working. SOLVED
Hey all, was hoping someone could help me out with this.

I made a solution that I believe solves the puzzle, but it doesn't complete. Is it a bug or is it my fault?

I think it looks complete to me: https://steamcommunity.com/sharedfiles/filedetails/?id=1496994522

I will paste the code as well:

-- 7 Billion Humans (2059) --
-- 61: Lazy Pathways --

a:
step nw,w,sw,n,s,ne,e,se
if c != 1:
jump a
endif
b:
step nw,w,sw,n,s,ne,e,se
if c == datacube:
mem2 = set 99
mem1 = foreachdir nw,w,sw,n,s,ne,e,se:
if mem1 == datacube and
mem1 < mem2:
mem2 = set mem1
endif
endfor
if mem2 != 99 and
mem2 < c:
pickup c
mem2 = calc mem2 + 1
write mem2
drop
endif
endif
jump b


Last edited by Max; Aug 29, 2018 @ 7:56am
< >
Showing 1-4 of 4 comments
Trixi Aug 29, 2018 @ 7:10am 
i can reproduce, but i also cant figure out what is wrong
Futae Yamagawa Aug 29, 2018 @ 7:12am 
Some levels require all cubes be set down to finish. Was this one?
Trixi Aug 29, 2018 @ 7:16am 
i figured it out. You sholdnt do the math, while your holding the cube:
-- 7 Billion Humans (2059) -- -- 61: Lazy Pathways -- a: step nw,w,sw,n,s,ne,e,se if c != 1: jump a endif b: step nw,w,sw,n,s,ne,e,se if c == datacube: mem2 = set 99 mem1 = foreachdir nw,w,sw,n,s,ne,e,se: if mem1 == datacube and mem1 < mem2: mem2 = set mem1 endif endfor if mem2 != 99 and mem2 < c: mem2 = calc mem2 + 1 pickup c write mem2 drop endif endif jump b

spoiler my solution 175ms

-- 7 Billion Humans (2059) -- -- 61: Lazy Pathways -- if e == wall: step w step w else: step nw,w step nw,w step nw,w step nw,w step nw,w endif mem3 = set c a: if mem3 == datacube: step mem3 mem3 = set 0 else: step nw,w,sw,e endif mem2 = set c if mem2 == datacube and mem2 > 2: if mem2 != 99: mem4 = calc mem2 + 2 else: mem4 = set 99 endif mem1 = foreachdir nw,w,sw,n,s,ne,e,se: if mem2 > mem1 and mem1 == datacube: mem2 = set mem1 endif if mem1 == datacube and mem3 == 0 and mem1 >= mem4: mem3 = set mem1 endif endfor if c > mem2 and mem2 != 0 and mem2 < 10: mem2 = calc mem2 + 1 if c > mem2: pickup c write mem2 drop endif endif endif jump a
Last edited by Trixi; Aug 29, 2018 @ 7:17am
Max Aug 29, 2018 @ 7:55am 
Originally posted by Trixi:
i figured it out. You sholdnt do the math, while your holding the cube:

Ah yes, thanks Trixi! perfect!
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Aug 29, 2018 @ 6:14am
Posts: 4