diff --git a/src/backend/Simulator.java b/src/backend/Simulator.java index ce3c01b..33618af 100644 --- a/src/backend/Simulator.java +++ b/src/backend/Simulator.java @@ -333,25 +333,27 @@ public class Simulator extends Thread { System.out.println("empty rule file"); return; } + //TODO : remove previous rule (=emptying lists) - fieldSurviveValues.clear(); - fieldBirthValues.clear(); - String[] surviveElements = lines.get(0).split(";"); - for (int x = 0; x < surviveElements.length; x++) { + + String surviveLine = lines.get(0); + String birthLine = lines.get(1); + String[] surviveElements = surviveLine.split(";"); + for(int x=0; x getAgentsSave() { //TODO : Same idea as the other save method, but for agents