特技关卡 7-12
goto = (d) ->
turnTo d
step distanceTo d
rideTurtle = (t) ->
goto turtle
turtle.step t
getMatches = () ->
for m in matches
rideTurtle 20
goto m
grab()
rideTurtle -20
goto pile
drop()
getMatches()
特技关卡 7-13
foo = (x) ->
beavers[x].step x*2
goto = (t) ->
turnTo t
step distanceTo t
i = 04.times ->
foo i
i = i + 1
grab()
goto pile
drop()
特技关卡 7-14
goto = (t) ->
turnTo t
step distanceTo t
allStep = (kind) ->
for a in kind
a.step 5
#这两行应该建成两座桥
allStep beavers
#完成这里的代码
goto match
grab()
allStep turtles
goto pile
drop()
特技关卡 7-15
goto = (t) ->
turnTo t
step distanceTo t
allCrocsTurn = (d) ->
for c in crocodiles
c.turn d
allCrocsTurn right
goto raft
allCrocsTurn left
for b in bananas
goto b