// SWIFT CODE let robot = Robot.activeRobot() for i in 0..<14 { let dst1: Int = robot.scanDistance() robot.moveBy(dst1) if robot.scanColor() == Color(name:"BLUE") { robot.brick.get() robot.turn("LEFT") robot.turn("LEFT") robot.brick.put() robot.turn("LEFT") robot.turn("LEFT") } else { if robot.scanColor() == Color(name:"GREEN"){ robot.turn("RIGHT") } else { robot.turn("LEFT") } } } let dst2: Int = robot.scanDistance() robot.moveBy(dst2)