did getSaveState
This commit is contained in:
parent
91f6f870de
commit
5b087feac5
|
|
@ -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(";");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue