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