Escaping the Maze - Reeborg's world
def turn_right():
turn_left()
turn_left()
turn_left()
while not at_goal():
if right_is_clear():
turn_right()
move()
elif front_is_clear():
move()
else:
turn_left()
This code is not complete yet, will get back to it after day 15th.
Comments
Post a Comment