did getSaveState

This commit is contained in:
Timéo 2024-05-27 12:59:29 +02:00
parent 91f6f870de
commit 5b087feac5
1 changed files with 3 additions and 3 deletions

View File

@ -246,11 +246,11 @@ public class Simulator extends Thread {
*/
public ArrayList<String> getSaveState() {
ArrayList<String> saveState = new ArrayList<>();
for (int i = 0; i < getHeight(); i++) {
for (int j = 0; j < getHeight(); j++) {
StringBuilder lineState = new StringBuilder();
for (int j = 0 ; j < getHeight() ; j++) {
for (int i = 0 ; i < getWidth() ; i++) {
lineState.append(getCell(i, j));
if (j < getWidth() - 1) {
if (j < getHeight() -1) {
lineState.append(";");
}
}