Labels

Tuesday, June 12, 2012

Blockly Demo: Maze Hardcoded Solution

Maze Demo:
blockly-demo.appspot.com/blockly/demos/maze/index.html

The Verge: Google Blockly: an easy, visual way to learn to code

2 comments:

  1. repeat: forever
    do -> turn left
    -> repeat while: wall ahead
    -> do -> turn right
    -> move forward

    Would solve any maze, following the logic that if you hold your left hand to the wall of a maze, and continue walking, you will find the exit. (Not the most efficient solution.)

    ReplyDelete
  2. Seems some whitespace was removed there... Makes it a little harder to read...
    http://imgur.com/7a7NI

    ReplyDelete