diff --git a/src/main/java/core/basesyntax/RobotRoute.java b/src/main/java/core/basesyntax/RobotRoute.java index e1951652..b64ce3a9 100644 --- a/src/main/java/core/basesyntax/RobotRoute.java +++ b/src/main/java/core/basesyntax/RobotRoute.java @@ -11,11 +11,11 @@ public void moveRobot(Robot robot, int toX, int toY) { robot.turnLeft(); } } - while (robot.getX() != toX){ + while (robot.getX() != toX) { robot.stepForward(); } - if(robot.getY() < toY) { + if (robot.getY() < toY) { while (robot.getDirection() != Direction.UP){ robot.turnRight(); }