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

Suppression lignes de debug

parent d87cdf72
Branches
No related tags found
No related merge requests found
Pipeline #40675 passed
......@@ -138,9 +138,9 @@ public class Controller {
entityCounts.put((pos, b) -> new Mountain(pos), initialmountaincount);
entityCounts.put((pos, b) -> new Rockery(pos), 3);
*/
entityCounts.put((pos, b) -> new Rock(pos), 100);
entityCounts.put((pos, b) -> new Cisor(pos), 100);
entityCounts.put((pos, b) -> new Paper(pos), 100);
entityCounts.put((pos, b) -> new Rock(pos), 10);
entityCounts.put((pos, b) -> new Cisor(pos), 10);
entityCounts.put((pos, b) -> new Paper(pos), 10);
Model model = new RockPaperCisorScenario(columnCount, rowCount, entityCounts);
this.setModel(model);
repaintGrid();
......
......@@ -42,7 +42,6 @@ public class Cisor implements Entity {
// Si aucune entité Rock n'est trouvée, ennemy reste null.
}
if(ennemy == null && target == null){
System.err.println("all null");
return List.of();
}
Position nextPos = null;
......
......@@ -41,7 +41,6 @@ public class Paper implements Entity {
// Si aucune entité Cisor n'est trouvée, ennemy reste null.
}
if(ennemy == null && target == null){
System.err.println("all null");
return List.of();
}
Position nextPos = null;
......
......@@ -41,7 +41,6 @@ public class Rock implements Entity {
// Si aucune entité Paper n'est trouvée, ennemy reste null.
}
if(ennemy == null && target == null){
System.err.println("all null");
return List.of();
}
Position nextPos = null;
......
......@@ -41,7 +41,6 @@ public class RockPaperCisorScenario extends Scenario implements Model{
// Increment the step counter
this.step = this.step + 1;
System.out.println("-----------");
return changedPositions;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment