Google Blockly Games Maze 10 Solution

Google Blockly Games Maze 10 Solution

Google Blockly Games Maze 10 Solution

Congratulations!

You solved this level with 18 lines of JavaScript:

while (notDone()) {
  moveForward();
  if (isPathForward()) {
    if (isPathRight()) {
      turnRight();
    } else {
      if (isPathLeft()) {
        turnLeft();
      }
    }
  } else {
    if (isPathLeft()) {
      turnLeft();
    } else {
      turnRight();
    }
  }
}

Are you ready for the next challenge?

Continue Reading Google's Blockly Games Maze 1-10 Solutions