This is the solution of level 10 of blockly-games online tool.
1 2 3 4 5 6 7 8 9 10 | while (notDone()) { if (isPathLeft()) { turnLeft(); } if (isPathForward()) { moveForward(); } else { turnRight(); } } |
This is the solution of level 10 of blockly-games online tool.
1 2 3 4 5 6 7 8 9 10 | while (notDone()) { if (isPathLeft()) { turnLeft(); } if (isPathForward()) { moveForward(); } else { turnRight(); } } |