# Walks along the walls # of a rectangular room, # keeping the wall to the # right. put_beeper() move() while not on_beeper(): if front_is_clear(): move() else: turn_left() pick_beeper() turn_off()