Google Blocky Maze

Today I checked this link by accident. This is amazing tool to learn programming graphically.

The maze puzzle has 10 levels.
http://blockly-demo.appspot.com/static/apps/maze/index.html

I was able to solve all the 10 levels. Graphical programming is amazing.

Here is the solution for 10th level


5 comments:

Anonymous said...

Thanks for that. I have never done programming before and pretty easily got to level 9 but jump to level 10 too much a)embedding the commands b) despite the hint to stick to left wall did not understand until saw in action.

Anonymous said...

Thanks for that. I have never done programming before and pretty easily got to level 9 but jump to level 10 too much a)embedding the commands b) despite the hint to stick to left wall did not understand until saw in action.

slartibartfas said...

there is a much easier solution with only five steps:

if path ahead

do
move forward
turn left

else
turn right

repeat

slartibartfas said...

there is a much shorter solution

if path ahead

do
move forward
turn left

else
turn right

repeat

amond said...

lots of solutions to this - I like:

repeat loop...
if path left, do turn left
if path ahead, move forward else turn right


it is good to know there are various solutions to the same challenge!

(and well done to anyone who solves level 10)