@@ -73,22 +73,21 @@ public static void mazeRecursion() {
73
73
}
74
74
}
75
75
76
- // Using recursive path finding to help the ball find its way in the maze
77
- // Description:
78
- // 1. map (means the maze)
79
- // 2. i, j (means the initial coordinate of the ball in the maze)
80
- // 3. if the ball can reach the end of maze, that is position of map[6][5],
81
- // means the we have found a path for the ball
82
- // 4. Additional Information: 0 in the map[i][j] means the ball has not gone
83
- // through this position, 1 means the wall, 2 means the path is feasible, 3
84
- // means the ball has gone through the path but this path is dead end
85
- // 5. We will need strategy for the ball to pass through the maze for example:
86
- // Down -> Right -> Up -> Left, if the path doesn't work, then backtrack
87
76
/**
88
- *
89
- * @Description
77
+ * Using recursive path finding to help the ball find its way in the maze
78
+ * Description:
79
+ * 1. map (means the maze)
80
+ * 2. i, j (means the initial coordinate of the ball in the maze)
81
+ * 3. if the ball can reach the end of maze, that is position of map[6][5],
82
+ * means the we have found a path for the ball
83
+ * 4. Additional Information: 0 in the map[i][j] means the ball has not gone
84
+ * through this position, 1 means the wall, 2 means the path is feasible, 3
85
+ * means the ball has gone through the path but this path is dead end
86
+ * 5. We will need strategy for the ball to pass through the maze for example:
87
+ * Down -> Right -> Up -> Left, if the path doesn't work, then backtrack
88
+ *
90
89
* @author OngLipWei
91
- * @date Jun 23, 202111 :36:14 AM
90
+ * @version Jun 23, 2021 11 :36:14 AM
92
91
* @param map The maze
93
92
* @param i x coordinate of your ball(target)
94
93
* @param j y coordinate of your ball(target)
0 commit comments