RIP Philo

You drag instructions into a command bar to get your rabbit to eat carrots.  Really impressive work by the Google people.
xampl9
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."
Legion
December 4th, 2017 9:58am
Defective game.

I put instructions to have my rabbit nosedive into the abyss, and thought, "Die, die, die!"  But the rabbit refused to jump.
Legion
December 4th, 2017 10:01am
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.
Reality Check
December 4th, 2017 10:07am
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.
Reality Check
December 4th, 2017 10:10am
OK, got the optimal for that last one.

Optimal length solutions have the following number of instructions: 2 5 4 7 6 6.
Reality Check
December 4th, 2017 10:29am
Loop instructions seem to count as 2 instructions.
Reality Check
December 4th, 2017 10:30am
Not sure how the optimal can be 6 instructions for those last two. You've got to backtrack on the next-to-last one.
xampl9
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.
Reality Check
December 4th, 2017 5:36pm
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".
Reality Check
December 4th, 2017 5:39pm
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.
Reality Check
December 4th, 2017 5:40pm
I tried it and it crashed for me on the 4th one.
FSK
December 4th, 2017 6:33pm
> if so, offer a job on the spot.

I guess there isn’t so much demand for logo programmers.
Stupid guy
December 4th, 2017 7:03pm
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.
xampl9
December 5th, 2017 3:45pm