Skip to content

Commit 7af2c6b

Browse files
author
Gabriel Derrien
committed
Retrait logs DFS + clean build
1 parent 7167604 commit 7af2c6b

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

bin/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/AStarSolver$1.class
2+
/AStarSolver$2.class
3+
/AStarSolver.class
4+
/BFS_Solver.class
5+
/DFS_Solver.class
6+
/Main.class
7+
/Maze.class
8+
/Node.class
9+
/Square.class

bin/DFS_Solver.class

-117 Bytes
Binary file not shown.

bin/Main.class

-7 Bytes
Binary file not shown.

src/DFS_Solver.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ public void solve()
5454
Node<Maze> current = this.frontier.pop(); //Get first node from the frontier
5555
this.maze = (Maze) current.getContent();
5656
Square currState = this.maze.getCurrState();
57-
58-
System.out.println(this.maze.printMaze());
5957

6058
if(currState.getLine() == this.maze.getEnd().getLine() && currState.getCol() == this.maze.getEnd().getCol())
6159
{
@@ -84,7 +82,6 @@ public void solve()
8482
this.nodesCounter++;
8583
}
8684
}
87-
System.out.println(this.frontier.toString());
8885
}
8986
}
9087

@@ -109,7 +106,6 @@ public LinkedList<Node<Maze>> getNextSquares()
109106
Square tempSq = nexts.get(i).getCurrState();
110107
if(!this.closedSquares.contains(tempSq))
111108
{
112-
//this.closedSquares.push(tempSq);
113109
Node<Maze> tempNode = new Node<Maze>(nexts.get(i));
114110
res.add(tempNode);
115111
}

src/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static void main(String[] args) throws IOException
2222
//====================
2323
//====================
2424

25-
Maze lab2 = new Maze("./data/lab_samuel.txt");
25+
Maze lab2 = new Maze("./data/lab.txt");
2626

2727
//char[] order = {'N', 'W', 'S', 'E'};
2828
//lab2.setOrder(order);

0 commit comments

Comments
 (0)