some stuf
This commit is contained in:
parent
75e9fad8d6
commit
698481f9f0
|
|
@ -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++) {
|
||||
|
|
|
|||
|
|
@ -359,7 +359,7 @@ public class Simulator extends Thread {
|
|||
ArrayList<String> 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(";");
|
||||
|
|
|
|||
Loading…
Reference in New Issue