The hurdle loop challenge 3 - using "variable Hurdle" - Reeborg's world
def turn_right():
turn_left()
turn_left()
turn_left()
def jump_long():
turn_left()
while wall_on_right():
move()
turn_right()
move()
turn_right()
while front_is_clear():
move()
turn_left()
while not at_goal():
if wall_in_front():
jump_long()
else:
move()
Comments
Post a Comment