diff --git a/src/backend/Rules.java b/src/backend/Rules.java index 80b06bf..1896db0 100644 --- a/src/backend/Rules.java +++ b/src/backend/Rules.java @@ -36,11 +36,9 @@ public class Rules { if (row.size() <= 0) { System.out.println("wrong file buddy, this one's empty"); - return; }else if (surviveCells.length<=0) { System.out.println("wrong file buddy, this one's does not have survival rules, won't work"); - return; }else { for (int x = 0; x < surviveCells.length; x++) { diff --git a/src/backend/Simulator.java b/src/backend/Simulator.java index 5e1baae..3b90257 100644 --- a/src/backend/Simulator.java +++ b/src/backend/Simulator.java @@ -359,7 +359,7 @@ public class Simulator extends Thread { ArrayList rule = new ArrayList<>(); for (int i = 0; i < getHeight(); i++) { StringBuilder lineState = new StringBuilder(); - for (int j = 0 ; j < getHeight() ; j++) { // je crois qu'il y a un probleme, il fau+t mettre getWidth je crois + for (int j = 0 ; j < getWidth() ; j++) { lineState.append(getCell(i, j)); if (j < getWidth() - 1) { lineState.append(";");