You drag instructions into a command bar to get your rabbit to eat carrots. Really impressive work by the Google people.
December 4th, 2017 8:27am
How do they get off on calling those graphic instructions "code"?
B.S. It is no more code than me telling my grandson, "Sit down on the piano bench. Open your book. Start practicing."
I put instructions to have my rabbit nosedive into the abyss, and thought, "Die, die, die!" But the rabbit refused to jump.
I got a blue ribbon for optimal moves on all but the last level.
Now it looks like I have to play from the start to clear that last level and get all blue ribbons. Meh.
At Legion, it's a dialect of Logo. Lego Mindstorms have the same sort of graphical code block thing.
It is code. It's just a very specialized language.
Another sort of code could be setting up a music play list using a very flexible music player.
OK, got the optimal for that last one.
Optimal length solutions have the following number of instructions: 2 5 4 7 6 6.
Not sure how the optimal can be 6 instructions for those last two. You've got to backtrack on the next-to-last one.
December 4th, 2017 1:07pm
Let me know if you want me to tell you the answer or if you want to think about it some more.
Hm, I guess in that one they counted the loop as 1 instruction. I have 4 instructions and 2 loops and it was counted as optimal. There's multiple solutions but they are basically rotations of each other.
I did the last one with 4 instructions and 1 loop, so 5 instructions really, 1 better than Google's "optimal".
They should have put in the code a check if you do better than the theoretical optimum and if so, offer a job on the spot. Oh well. Their loss.
I tried it and it crashed for me on the 4th one.
December 4th, 2017 6:33pm
> if so, offer a job on the spot.
I guess there isn’t so much demand for logo programmers.
Turns out you can nest the loops, and there's no requirement against travelling over the same block multiple times.
For the last one (I looked it up) I was going around the circumference. But it turns out that using interior travel costs fewer statements.
December 5th, 2017 3:45pm