Skip to content
Snippets Groups Projects
Commit 89671222 authored by Yanis O's avatar Yanis O
Browse files

[Suppr] debug print

parent e115d100
No related branches found
No related tags found
No related merge requests found
Pipeline #38961 failed
......@@ -100,7 +100,6 @@ public class FireFighter implements Entity{
if (bestMove == null) {
return null;
}
System.out.println("moving from " + position.toString() + " to " + bestMove.toString());
return bestMove;
}
......
......@@ -122,7 +122,6 @@ public class FireFighterScenario extends EntityScenario implements Board<Entity>
e.incrementAge();
changedPositions.addAll(entityUpdatedPositions);
}
matrix.displayMatrix();
return changedPositions;
}
......
......@@ -4,9 +4,6 @@ import java.util.ArrayList;
import java.util.Iterator;
import java.util.NoSuchElementException;
import model.Fire;
import model.FireFighter;
public class Matrix<E> implements Iterable<E> {
private ArrayList<ArrayList<E>> matrix;
private final int rows;
......@@ -62,7 +59,7 @@ public class Matrix<E> implements Iterable<E> {
return this.rows;
}
/*
public void displayMatrix() {
System.out.print(" ");
for (int j = 0; j < columns; j++) {
......@@ -95,7 +92,7 @@ public class Matrix<E> implements Iterable<E> {
System.out.println();
}
}
*/
private void validateIndex(int x, int y) {
if (x < 0 || x >= rows || y < 0 || y >= columns) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment