Skip to content

Commit

Permalink
deafult -- fix
Browse files Browse the repository at this point in the history
  • Loading branch information
acidcor committed Dec 15, 2024
1 parent c02f609 commit bb81632
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/core/basesyntax/RobotRoute.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public void moveRobot(Robot robot, int toX, int toY) {
robot.stepForward();
}
break;
default:
break;
}
}
if (startX >= toX & startY >= toY) {
Expand Down Expand Up @@ -88,6 +90,8 @@ public void moveRobot(Robot robot, int toX, int toY) {
robot.stepForward();
}
break;
default:
break;
}
}
if (startX >= toX & startY <= toY) {
Expand Down Expand Up @@ -130,6 +134,8 @@ public void moveRobot(Robot robot, int toX, int toY) {
robot.stepForward();
}
break;
default:
break;
}
}
if (startX <= toX & startY >= toY) {
Expand Down Expand Up @@ -172,6 +178,8 @@ public void moveRobot(Robot robot, int toX, int toY) {
robot.stepForward();
}
break;
default:
break;
}
}
}
Expand Down

0 comments on commit bb81632

Please sign in to comment.