7 Billion Humans

7 Billion Humans

View Stats:
zeeq Dec 2, 2024 @ 3:41pm
Stuck on trying to get Year 5 optional quest for 5/2
I understand that the employees don't have to pick up the cube but I cannot seem to get the max steps to 5, even using solutions online. It always comes out to 6 steps?

I am attempting to use:
if e == datacube:
a:
step e
jump a
else
b:
step w
jump b


The "else" seems to make the count over 5 steps. What am I doing wrong here? Thanks.
Last edited by zeeq; Dec 2, 2024 @ 3:42pm
< >
Showing 1-2 of 2 comments
abfipes Dec 8, 2024 @ 1:09pm 
indeed "else" makes the count over 5.
so if you like online solutions. try one without else. https://github.com/abfipes12/7-Billion-Humans-Solutions
zeeq Dec 16, 2024 @ 11:13pm 
Originally posted by abfipes:
indeed "else" makes the count over 5.
so if you like online solutions. try one without else. https://github.com/abfipes12/7-Billion-Humans-Solutions

Thanks! Sorry I for the late reply, I finally understand the solution. I was misinterpreting the endif as an else because it was quite finicky trying to put the steps outside the if statement cause it kept auto adding the "else" in there, so I assumed that was what the endif was and couldn't put the code without the else in there.
< >
Showing 1-2 of 2 comments
Per page: 1530 50