特技关卡 4-1
x = 20
step x
特技关卡 4-2
x = 10
5.times ->
turn 60
step x
或者
x = -10
5.times ->
step x
turn -60
特技关卡 4-3
num = 8
distance = 7
degree = 45
num.times ->
step distance
turn degree
或者
num = 8
distance = -7
degree = -45
num.times ->
turn degree
step distance
特技关卡 4-4
d = 20
13.times ->
step 6
turn d
d = d + 4
特技关卡 4-5
x = 15
turtle.step x
step x
turn left
step x
特技关卡 4-6
x = 8
4.times ->
step x
step 0-x-x
step x
turtle.step 7.5
特技关卡 4-7
x = 20
say x
turnTo banana
step x
特技关卡 4-8
x = 17
turtle.step x
2.times ->
turn right
step x
特技关卡 4-9
x = distanceTo banana
step x
特技关卡 4-10
x = monkey.distanceTo bridge
y = bridge.distanceTo banana
step x
turnTo banana
step y
特技关卡 4-11
d = distanceTo banana
step -d
特技关卡 4-12
x = turtle.distanceTo banana
y = monkey.distanceTo banana
turtle.turnTo banana
turtle.step x
monkey.step y
特技关卡 4-13
d = turtle.distanceTo islands[4]
turtle.step d
m = monkey.distanceTo turtle
step m
turtle.step -d
turtle.turnTo banana
turtle.step m
特技关卡 4-14
say "RUN!"
monkey.step distanceTo bush
monkey.turnTo banana
monkey.step distanceTo banana
特技关卡 4-15
x = 0
3.times ->
turnTo bananas[x]
step 15
x = x + 1