diff --git a/src/backend/Simulator.java b/src/backend/Simulator.java index 8826654..695a326 100644 --- a/src/backend/Simulator.java +++ b/src/backend/Simulator.java @@ -29,6 +29,7 @@ public class Simulator extends Thread { private int width; private int height; private boolean enableLogs; + private Table table; public Simulator(MyInterface mjfParam) { mjf = mjfParam; @@ -46,6 +47,7 @@ public class Simulator extends Thread { this.width=COL_NUM; this.height=LINE_NUM; enableLogs = true; // for debugging purposes + table = new Table(height, width); //Default rule : Survive always, birth never @@ -110,8 +112,16 @@ public class Simulator extends Thread { } } //then evolution of the field - // TODO : apply game rule to all cells of the field - + // TODO-INPROGRESS : apply game rule to all cells of the field + Table tempTable = new Table(this.height, this.width); + for(int x=0; x