Skip to content

Commit

Permalink
Fix/feedback (#5)
Browse files Browse the repository at this point in the history
* Remove duplicate code

* Remove unrelated comments to task

* Add example solution for ungraded task

---------

Co-authored-by: zentox <[email protected]>
  • Loading branch information
zentox and zentox authored Sep 20, 2023
1 parent 4f7a4c5 commit 2bb988f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/main/java/h06/ui/MazeVisualizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ public void run(ProblemSolver solver, Point s, Point e, DirectionVector d) {
fopbot.World.getGlobalWorld().setFieldColor(s.x, s.y, Color.BLUE);
fopbot.World.getGlobalWorld().setFieldColor(e.x, e.y, Color.YELLOW);

fopbot.World.getGlobalWorld().setFieldColor(s.x, s.y, Color.BLUE);
fopbot.World.getGlobalWorld().setFieldColor(s.x, s.y, Color.YELLOW);
for (int i = 1; i < path.length; i++) {
Point p = path[i];
int x = robot.getX();
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/h06/world/World.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ public boolean isBlocked(Point p, DirectionVector d) {
int x;
int y;
boolean horizontal;
// 1 point for vertical
// 1 point for special case
if (p.x > r.x) {
// Right, vertical check
x = r.x;
Expand Down

0 comments on commit 2bb988f

Please sign in to comment.