No older revisions available
No older revisions available
~cpp
########################
# Function Definitions #
########################
def right():
repeat(turn_left,3)
#move get function
def moveget(no):
for i in range(no):
move()
get()
left = turn_left
get = pick_beeper
put = put_beeper
def upleft():
left()
move()
left()
get()
def upright():
right()
move()
right()
if next_to_a_beeper():
get()
def get2line(a,b):
moveget(a)
upleft()
moveget(b)
upright()
####################
# main source code #
####################
get2line(6,5)
get2line(5,5)
get2line(5,5)
turn_off()