some stuf

This commit is contained in:
Laure BEL 2024-05-29 16:42:05 +02:00
parent 75e9fad8d6
commit 698481f9f0
2 changed files with 1 additions and 3 deletions

View File

@ -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++) {

View File

@ -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(";");