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
Download the Arduino IDE Software #Arduino #Coding...
Raspberry Pi vs Arduino Uno #RaspberryPi #Arduino...
Computer Science Teacher Training #Teacher #Training...
Primary School Coding Curriculum Key Stage 1: understand what algorithms are, how they are implemented...
Arduino IDE Manage Libraries #Arduino...
Start a Code Club in Your School @CodeClub #Coding #Teachers #School...