This commit is contained in:
titou 2024-06-02 15:15:08 +02:00
parent 3c99890f0c
commit 6ca297d2fc
2 changed files with 1 additions and 8 deletions

View File

@ -1,5 +0,0 @@
public class Test {
//example
}

View File

@ -27,7 +27,6 @@ public class Simulator extends Thread {
private boolean clickActionFlag;
private int loopDelay = 150;
//TODO : add missing attribute(s)
private int[][] field;
//DONE
@ -42,11 +41,10 @@ public class Simulator extends Thread {
fieldBirthValues = new ArrayList<Integer>();
fieldSurviveValues = new ArrayList<Integer>();
//TODO : add missing attribute initialization
field = new int[LINE_NUM][COL_NUM]; // Initialize the field
//DONE
// Default rule: Survive for 2 or 3 neighbors, birth with 3 neighbors
for(int i =0; i<9; i++) {
if (i==2 || i==3) {
fieldSurviveValues.add(i);