Final
This commit is contained in:
parent
3c99890f0c
commit
6ca297d2fc
|
|
@ -1,5 +0,0 @@
|
|||
|
||||
public class Test {
|
||||
//example
|
||||
|
||||
}
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue