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

[Suppr] debug print

parent 2af976c9
No related branches found
No related tags found
No related merge requests found
...@@ -100,7 +100,6 @@ public class FireFighter implements Entity{ ...@@ -100,7 +100,6 @@ public class FireFighter implements Entity{
if (bestMove == null) { if (bestMove == null) {
return null; return null;
} }
System.out.println("moving from " + position.toString() + " to " + bestMove.toString());
return bestMove; return bestMove;
} }
......
...@@ -122,7 +122,6 @@ public class FireFighterScenario extends EntityScenario implements Board<Entity> ...@@ -122,7 +122,6 @@ public class FireFighterScenario extends EntityScenario implements Board<Entity>
e.incrementAge(); e.incrementAge();
changedPositions.addAll(entityUpdatedPositions); changedPositions.addAll(entityUpdatedPositions);
} }
matrix.displayMatrix();
return changedPositions; return changedPositions;
} }
......
...@@ -4,9 +4,6 @@ import java.util.ArrayList; ...@@ -4,9 +4,6 @@ import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.NoSuchElementException; import java.util.NoSuchElementException;
import model.Fire;
import model.FireFighter;
public class Matrix<E> implements Iterable<E> { public class Matrix<E> implements Iterable<E> {
private ArrayList<ArrayList<E>> matrix; private ArrayList<ArrayList<E>> matrix;
private final int rows; private final int rows;
...@@ -62,7 +59,7 @@ public class Matrix<E> implements Iterable<E> { ...@@ -62,7 +59,7 @@ public class Matrix<E> implements Iterable<E> {
return this.rows; return this.rows;
} }
/*
public void displayMatrix() { public void displayMatrix() {
System.out.print(" "); System.out.print(" ");
for (int j = 0; j < columns; j++) { for (int j = 0; j < columns; j++) {
...@@ -95,7 +92,7 @@ public class Matrix<E> implements Iterable<E> { ...@@ -95,7 +92,7 @@ public class Matrix<E> implements Iterable<E> {
System.out.println(); System.out.println();
} }
} }
*/
private void validateIndex(int x, int y) { private void validateIndex(int x, int y) {
if (x < 0 || x >= rows || y < 0 || y >= columns) { 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