filmov
tv
Blockly Games Maze level 10 solution

Показать описание
JavaScript:
while (notDone()) {
if (isPathLeft()) {
turnLeft();
}
moveForward();
if (isPathLeft()) {
turnLeft();
}
moveForward();
if (isPathRight()) {
turnRight();
moveForward();
}
}
while (notDone()) {
if (isPathLeft()) {
turnLeft();
}
moveForward();
if (isPathLeft()) {
turnLeft();
}
moveForward();
if (isPathRight()) {
turnRight();
moveForward();
}
}