Skip to content

Commit 67e1d55

Browse files
committed
fixed the not drawing in large search bug
1 parent 3c230b7 commit 67e1d55

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/AStarSearch.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ private PriorityQueue<Tile> getNeighbors(Tile tile) {
174174

175175
public LinkedList<Tile> reconstructPath(Tile current) {
176176
LinkedList<Tile> path = new LinkedList<>();
177-
System.out.println("Path found");
178177
while (current != null) {
179178
path.add(current);
180179

src/Game.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ private Tile fetchTile(int mouseX, int mouseY) {
333333

334334
// delayed timer to animate the ant and making it smoother movement.
335335
public void delayPaint() {
336-
int delay = 100; // 1 second delay
336+
int delay = 150;
337337
Timer timer = new Timer(delay, new ActionListener() {
338338
LinkedList<LinkedList<Tile>> allPath2D = ant.getAllPath2D();
339339
Tile subNodeToBeDrawn = null;

0 commit comments

Comments
 (0)