diff --git a/conwayRule.json b/conwayRule.json index 7f1a76e..12cb7a9 100644 --- a/conwayRule.json +++ b/conwayRule.json @@ -1,6 +1,6 @@ [{"cell": { "value" : 1, - "color" : [255,255,255], + "color" : [167,237,139], "conditionCountNear" : [2,3], "conditionHighestNear" : [], "ifValue" : 1, @@ -8,7 +8,7 @@ }}, {"cell": { "value" : 0, - "color" : [102,0,0], + "color" : [37,52,31], "conditionCountNear" : [3], "conditionHighestNear" : [], "ifValue" : 1, diff --git a/ressources/World/randomFive.csv b/ressources/World/randomFive.csv new file mode 100644 index 0000000..96026f8 --- /dev/null +++ b/ressources/World/randomFive.csv @@ -0,0 +1,100 @@ +5;0;0;5;5;0;0;0;0;5;5;5;0;5;5;5;5;0;5;0;5;0;0;5;5;0;5;0;0;5;0;0;0;0;0;5;5;0;0;0;5;0;0;0;0;0;5;5;0;0;0;0;5;0;5;0;5;0;0;0;0;0;0;5;0;5;5;0;5;5;0;0;5;0;0;5;5;0;0;5;5;5;0;0;5;5;0;0;5;5;5;0;5;5;5;0;5;5;5;5 +5;0;0;5;0;0;0;0;0;5;5;0;0;0;0;0;5;0;0;5;0;0;5;5;5;0;5;5;5;5;0;0;0;0;5;5;0;5;0;0;5;0;5;0;0;5;0;5;0;5;5;5;5;0;0;5;0;0;0;5;5;5;0;5;0;5;0;5;5;5;0;0;5;5;5;0;0;5;0;5;0;0;5;5;0;5;5;5;5;0;0;5;0;5;0;5;0;0;0;5 +0;5;0;0;0;0;0;5;0;0;0;0;0;0;0;0;5;0;0;0;0;5;0;0;5;5;5;0;0;5;5;0;5;5;0;5;0;5;0;5;5;0;0;0;0;0;5;0;0;0;0;0;0;0;5;5;5;0;0;0;5;5;0;5;0;0;0;0;0;5;5;0;5;0;5;0;5;5;5;5;5;5;0;0;0;0;0;0;0;0;5;5;0;5;0;0;0;0;5;0 +5;5;0;5;0;0;0;0;0;0;5;5;0;0;5;5;0;0;0;0;0;0;5;0;0;5;0;0;5;0;5;0;5;0;5;5;5;5;5;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..5c2355f 100644 --- a/src/backend/Simulator.java +++ b/src/backend/Simulator.java @@ -83,7 +83,10 @@ public class Simulator extends Thread { //TODO-COMPLETE : replace with proper return return this.height; } - + public ArrayList> getColorArrayList() { + return colorArrayList; + } + //Should probably stay as is public void run() { int stepCount=0; @@ -130,7 +133,7 @@ public class Simulator extends Thread { } } //then evolution of the field - // TODO-INPROGRESS : apply game rule to all cells of the field + //TODO-INPROGRESS : apply game rule to all cells of the field this.applyRule(); @@ -585,6 +588,9 @@ public class Simulator extends Thread { + + + //debug print the list of rules public void printRules(ArrayList ruleArrayList) { System.out.println("-----------------------------------"); System.out.println("Rule list size: "+ruleArrayList.size()); @@ -600,23 +606,4 @@ public class Simulator extends Thread { } } - - - public void printRules(ArrayList ruleArrayList) { - System.out.println("-----------------------------------"); - System.out.println("Rule list size: "+ruleArrayList.size()); - System.out.println("-----------------------------------"); - for (Rule rule : ruleArrayList) { - System.out.println("Rule for value: " + rule.getValue()); - System.out.println("Color: " + rule.getColor()); - System.out.println("Condition Count Near: " + rule.getConditionCountNear()); - System.out.println("Condition Highest Near: " + rule.getConditionHighestNear()); - System.out.println("If Value: " + rule.getIfValue()); - System.out.println("Else Value: " + rule.getElseValue()); - System.out.println("-----------------------------------"); - } - } - - - } diff --git a/src/windowInterface/JPanelDraw.java b/src/windowInterface/JPanelDraw.java index 8ea1c24..056c83a 100644 --- a/src/windowInterface/JPanelDraw.java +++ b/src/windowInterface/JPanelDraw.java @@ -16,6 +16,7 @@ public class JPanelDraw extends JPanel { private static final long serialVersionUID = 1L; private Simulator mySimu; private MyInterface interfaceGlobal; + ArrayList> colorArrayList; public JPanelDraw(MyInterface itf) { super(); @@ -37,6 +38,7 @@ public class JPanelDraw extends JPanel { public void setSimu(Simulator simu) { mySimu = simu; + colorArrayList = mySimu.getColorArrayList(); } @Override @@ -61,11 +63,12 @@ public class JPanelDraw extends JPanel { int cellContent = mySimu.getCell(x,y); if(cellContent == -1) { g.setColor(Color.gray); - } - if(cellContent == 0) { - continue; - } - if(cellContent == 1) { + } else if(cellContent=0) { + int red = colorArrayList.get(cellContent).get(0); + int green = colorArrayList.get(cellContent).get(1); + int blue = colorArrayList.get(cellContent).get(2); + g.setColor(new Color(red,green,blue)); + } else { g.setColor(Color.white); } if(cellContent == 2) {