Finally function ajhefvuipgr"uiphgpiua"re^vez dbp_ugiél
This commit is contained in:
parent
cf3646307b
commit
0cfe8fc9b5
|
|
@ -11,8 +11,8 @@ public class Simulator extends Thread {
|
||||||
|
|
||||||
private MyInterface mjf;
|
private MyInterface mjf;
|
||||||
|
|
||||||
private int COL_NUM = 10;
|
private int COL_NUM = 100;
|
||||||
private int LINE_NUM = 10;
|
private int LINE_NUM = 100;
|
||||||
private final int LIFE_TYPE_NUM = 4;
|
private final int LIFE_TYPE_NUM = 4;
|
||||||
//Conway Radius : 1
|
//Conway Radius : 1
|
||||||
private final int LIFE_AREA_RADIUS = 1;
|
private final int LIFE_AREA_RADIUS = 1;
|
||||||
|
|
@ -31,8 +31,8 @@ public class Simulator extends Thread {
|
||||||
private int[][] world;
|
private int[][] world;
|
||||||
//private int[] survivalRulesArray;
|
//private int[] survivalRulesArray;
|
||||||
//private int[] birthRulesArray;
|
//private int[] birthRulesArray;
|
||||||
private int[] birthRulesArrays;
|
private int[] birthRulesArrays = new int[0];
|
||||||
private int[] surviveRulesArrays;
|
private int[] surviveRulesArrays = new int[0];
|
||||||
|
|
||||||
//TODO : add missing attribute(s)
|
//TODO : add missing attribute(s)
|
||||||
private int stepCount;
|
private int stepCount;
|
||||||
|
|
@ -609,14 +609,8 @@ public class Simulator extends Thread {
|
||||||
|
|
||||||
|
|
||||||
public void startSimulation() {
|
public void startSimulation() {
|
||||||
if (isWorldEmpty() & getWidth()==100 & getHeight()==100) {
|
mjf.generateRandomBoard();
|
||||||
mjf.clicLoadFileButtonCSV("World/baseworld.csv");
|
|
||||||
}else {
|
|
||||||
mjf.generateRandomBoard();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue