1
for (var count = 0; count < 4; count++) {
moveForward(100);
turnRight(90);
}
2
for (var count = 0; count < 5; count++) {
moveForward(100);
turnRight(72);
}
4
penColour('#ffff00');
for (var count = 0; count < 5; count++) {
moveForward(100);
turnRight(144);
}
5
penColour('#ffff00');
for (var count = 0; count < 5; count++) {
moveForward(50);
turnRight(144);
}
6
penUp();
moveForward(150);
penDown();
moveForward(20);
Congratulations!
You solved this level with 31 lines of JavaScript:
7
penColour('#ffff00');
for (var count = 0; count < 5; count++) {
moveForward(50);
turnRight(144);
}
penUp();
turnRight(90);
moveForward(100);
penDown();
for (var count2 = 0; count2 < 5; count2++) {
moveForward(50);
turnLeft(144);
}
penUp();
moveForward(50);
turnLeft(90);
moveForward(100);
penDown();
for (var count3 = 0; count3 < 5; count3++) {
moveForward(50);
turnLeft(144);
}
penUp();
moveForward(50);
turnLeft(90);
moveForward(100);
penDown();
for (var count4 = 0; count4 < 5; count4++) {
moveForward(50);
turnLeft(144);
}
penColour('#ffff00');
for (var count = 0; count < 5; count++) {
moveForward(50);
turnRight(144);
}
penUp();
moveForward(150);
penDown();
turnRight(120);
for (var count2 = 0; count2 < 5; count2++) {
moveForward(50);
turnRight(144);
}
penUp();
moveForward(150);
turnRight(120);
penDown();
for (var count3 = 0; count3 < 5; count3++) {
turnLeft(144);
moveBackward(50);
}
penUp();
turnLeft(90);
turnRight(90);
moveForward(150);
turnRight(120);
turnLeft(90);
moveForward(100);
penDown();
moveForward(50);
8
penColour('#ffff00');
for (var count = 0; count < 5; count++) {
moveForward(50);
turnRight(144);
}
penUp();
moveForward(150);
penDown();
turnRight(120);
for (var count2 = 0; count2 < 5; count2++) {
moveForward(50);
turnRight(144);
}
penUp();
moveForward(150);
turnRight(120);
penDown();
for (var count3 = 0; count3 < 5; count3++) {
turnLeft(144);
moveBackward(50);
}
penUp();
turnLeft(90);
turnRight(90);
moveForward(150);
turnRight(120);
turnLeft(90);
moveForward(100);
penDown();
moveForward(50);
9
penColour('#ffff00');
for (var count = 0; count < 5; count++) {
moveForward(50);
turnRight(144);
}
penUp();
moveForward(150);
penDown();
turnRight(120);
for (var count2 = 0; count2 < 5; count2++) {
moveForward(50);
turnRight(144);
}
penUp();
moveForward(150);
turnRight(120);
penDown();
for (var count3 = 0; count3 < 5; count3++) {
turnLeft(144);
moveBackward(50);
}
penUp();
turnLeft(90);
turnRight(90);
moveForward(150);
turnRight(120);
turnLeft(90);
moveForward(100);
penColour('#ffffff');
for (var count4 = 0; count4 < 360; count4++) {
penDown();
moveForward(50);
penUp();
moveBackward(50);
turnRight(1);
}
penUp();
turnLeft(1);
turnRight(120);
moveForward(20);
penColour('#000000');
for (var count5 = 0; count5 < 360; count5++) {
penDown();
moveForward(50);
penUp();
moveBackward(50);
turnRight(1);
https://blockly-games.appspot.com/turtle?lang=en&level=10#h5fa3g
Great
ResponderEliminar