top of page

76-100

76

goto = (a) ->
    turnTo a
    step distanceTo a
for m in matches
    goto m
    grab()
    goto pile
    drop()

77

goto = (p) -> 
    turnTo p
    step distanceTo p
for m in matches
    goto bridge
    goto m
    grab()
    goto bridge
    goto pile
    drop()

78

goto = (t) ->
    turnTo t
    step distanceTo t
collect = (e) ->
    goto e
    grab()
    goto pile
    drop()
for m in matches
    collect m

79

goto = (a) ->
    turnTo a
    step distanceTo a
goto match
grab()
goto pile
drop()

80

goto = (t) ->
    turnTo t
    step distanceTo t
collect = (a) ->
    goto a
    grab()
    goto pile
    drop()
goto bridge
for m in matches
    collect m

81

goto = (t) ->
    turnTo t
    step distanceTo t
crossBridgeTo = (p) ->
    goto bridge
    goto p
crossBridgeTo match
grab()
crossBridgeTo pile
drop()

82

goto = (t) ->
    turnTo t
    step distanceTo t
collectThruBridge = (z) ->
    goto bridge 
    goto z
    grab()
    goto bridge
    goto pile
    drop()
for m in matches
    collectThruBridge m

83

goto = (t) ->
    turnTo t
    step distanceTo t
gotoAll = (stuff) ->
    for s in stuff
        goto s
gotoAll islands
grab()
gotoAll rafts
drop()

84

goto = (t) ->
    turnTo t
    step distanceTo t
getAndReturn = (r) ->
    turnTo r
    d = distanceTo r
    step d
    grab()
    goto turtle
for m in matches
    getAndReturn m
    goto pile
    drop()
    goto turtle
    turtle.step 8

85

goto = (t) ->
    turnTo t
    step distanceTo t
collect = (m) ->
    goto m
    grab()
    goto pile
    drop()
allTurtlesStep = (d) ->
    turtles[0].step d
    turtles[1].step d
    turtles[2].step d
allTurtlesStep 10
collect matches[0]
allTurtlesStep -10
collect matches[1]

86

until near match
    step 1
grab()
until near pile
    step 1
drop()

87

until near match
    step 3
grab()
until near pile
    step 1
drop()

88

until near match
    step 1
grab()
turnTo pile
until near pile
    step 1
drop()

​

89

until near match
    step 1
grab()
turnTo pile
step distanceTo pile
drop()

90

until near match
    turnTo match
    step distanceTo match
grab()
turnTo pile
step distanceTo pile
drop()

91

until near match
    step 1
grab()
turnTo pile
step distanceTo pile
drop()

92

until turtle.near bridge
    turtle.step  1
grab()
step distanceTo pile
drop()

93

until near match
    turnTo match
    step 1
grab()
turnTo pile
step distanceTo pile
drop()

94

chase = (m) ->
    until near m
        turnTo m
        step 1
chase match
grab()
chase pile
drop()

95

chase = (m) ->
    until near m
        turnTo m
        step distanceTo m
for m in matches
    chase m
    grab()
    chase pile
    drop()

96

goto = (t) ->
    turnTo t
    step distanceTo t
collect = (t) ->
    goto t
    grab()
    goto pile
    drop()
until cat.sleeping()
    wait()
collect match

97

goto = (t) ->
    turnTo t
    step distanceTo t
collect = (t) ->
    goto t
    grab()
    goto pile
    drop()
for m in matches
    until cat.sleeping()
        wait()
    collect m

98

goto = (t) ->
    turnTo t
    step distanceTo t
safeCollect = (t) ->
    until cat.sleeping()
        wait()
    goto bridge
    goto t
    grab()
    goto bridge
    goto pile
    drop()
for m in matches
    safeCollect m

99

chase = (t) ->
    until near t
        turnTo t
        step 1
safeCollect = (m) ->
    until cat.sleeping()
        wait()
    chase m
    grab()
    chase pile
    drop()
safeCollect match

100

goto = (t) ->
    turnTo t
    step distanceTo t
for m in matches
    until cat.sleeping()
        wait()
    until near m
        turnTo m
        step 1
    grab()
    goto pile
    drop()
safecollect = (m) ->
    

bottom of page