tell robot to { move forward until right side is not a wall turn right move forward until right side is a wall # get blue gems do 2 times [ move forward until front side is a wall turn right move forward until front is a wall turn left move forward until front is a wall turn right if front side is a supply point then { take gem } move backward until back is a wall turn right move forward until front is a wall turn right move forward until front is a wall turn left move forward until right is not a wall turn right move forward until front is a wall if front side is a build point then { set gem } move backward until back side is a wall turn right ] # get red move back until back is a wall turn left move forward until left is not a wall turn left move forward until front is a wall turn left move forward until front is a supply point if front side is a supply point then { take gem } move backward until back is a wall turn left move forward until left is not a wall turn left move forward until front is a wall turn right move forward until left is not a wall turn left move forward until front is a wall if front is a build point then { set gem } move back until back is a wall # get pearl turn right move forward until right is not a wall turn right move forward until front is a wall turn right move forward until front is a wall if front is a supply point then { take gem } move back until back is a wall turn right move forward until front is a wall turn left move forward until right is not a wall turn right move forward until front is a wall if front is a build point then { set gem } # get diamond move back until back is a wall turn right move forward until front is a wall if front is a supply point then { take gem } move back until right is a wall turn left move forward until front is a wall if front is a build point then { set gem } # get ruby move back until back is a wall turn left move forward until front is a wall turn right move forward until left is not a wall turn left move forward until front is a wall turn left move forward until front is a supply point if front side is a supply point then { take gem } move backward until back is a wall turn left move forward until left is not a wall turn left move forward until front is a wall turn right move forward until left is not a wall turn left move forward until front is a wall if front is a build point then { set gem } # get 2 emeralds do 2 times [ move backward until left is not a wall turn left move forward until front is a wall turn left move forward until front is a wall turn right move forward until front is a wall turn left move forward until right is not a wall turn right move forward until front is a wall turn right if front is a supply point then { take gem } turn right move forward until front is a wall turn left move forward until right is not a wall turn right move forward until left is not a wall turn left move forward until front is a wall turn right move forward until left is not a wall turn left move forward until front is a build point set gem ] move backward until back is a wall turn right move backward until back is a wall turn right move forward until front is a wall turn right 180 verify sequence }