Skip to content

Commit 8249d80

Browse files
committed
refactoring the CoolMaze
1 parent fad7396 commit 8249d80

5 files changed

Lines changed: 440 additions & 873 deletions

File tree

src/main/java/org/teachingextensions/logo/utils/MazeUtils/CoolMaze.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public CoolMaze(int mazeComplexity)
2222
}
2323
public void drawWallsAndStartAndEndPoints()
2424
{
25-
Color colorOfStartAndEndPoints = StdDraw.GREEN;
25+
Color colorOfStartAndEndPoints = StdDrawColors.GREEN;
2626
StdDraw.setPenColor(colorOfStartAndEndPoints);
2727
createAndSizeStartPoint();
2828
createAndSizeEndPoint();
@@ -98,14 +98,14 @@ else if (r == 3 && !visited[x - 1][y])
9898
}
9999
private void renderCorrectSolveDots(int x, int y)
100100
{
101-
Color colorOfCorrectSolvePath = StdDraw.BOOK_BLUE;
101+
Color colorOfCorrectSolvePath = StdDrawColors.BOOK_BLUE;
102102
StdDraw.setPenColor(colorOfCorrectSolvePath);
103103
drawAndSizeSolvePathPoints(x, y);
104104
StdDraw.show(30);
105105
}
106106
private void renderIncorrectSolveDots(int x, int y)
107107
{
108-
Color colorOfIncorrectSolvePath = StdDraw.LIGHT_GRAY;
108+
Color colorOfIncorrectSolvePath = StdDrawColors.LIGHT_GRAY;
109109
StdDraw.setPenColor(colorOfIncorrectSolvePath);
110110
drawAndSizeSolvePathPoints(x, y);
111111
StdDraw.show(30);
@@ -124,7 +124,7 @@ private void createAndSizeStartPoint()
124124
}
125125
private void drawAndColorMazeWalls()
126126
{
127-
Color colorOfMazeWalls = StdDraw.DARK_GRAY;
127+
Color colorOfMazeWalls = StdDrawColors.DARK_GRAY;
128128
StdDraw.setPenColor(colorOfMazeWalls);
129129
drawMazeWalls();
130130
}

src/main/java/org/teachingextensions/logo/utils/MazeUtils/Maze.java

Lines changed: 0 additions & 197 deletions
This file was deleted.

0 commit comments

Comments
 (0)