- Maze.rur
def turn_right(): repeat(turn_left,3) while not on_beeper(): if left_is_clear(): turn_left() move() elif front_is_clear(): move() elif right_is_clear(): turn_right() else: repeat(turn_left,2) pick_beeper() turn_off()
def turn_right(): repeat(turn_left,3) while not on_beeper(): if left_is_clear(): turn_left() move() elif front_is_clear(): move() elif right_is_clear(): turn_right() else: repeat(turn_left,2) pick_beeper() turn_off()