From 37cdcde4c57f5bc05dea497b646cfad0f9ae38ee Mon Sep 17 00:00:00 2001 From: "balthazar.squinabol" Date: Wed, 10 Apr 2024 16:30:27 +0200 Subject: [PATCH] s --- src/backend/Simulator.java | 19 +++---------------- src/windowInterface/MyInterface.java | 1 + 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/src/backend/Simulator.java b/src/backend/Simulator.java index f8e45bd..9dc43d2 100644 --- a/src/backend/Simulator.java +++ b/src/backend/Simulator.java @@ -226,19 +226,6 @@ public class Simulator extends Thread { int currentCellValue = getCell(x, y); // set cell value to !currentCellValue } - - public void countAround(int x, int y) { - //enableLogs - //getCell - //if loopingBorder TRUE, border count as living. - if (loopingBorder == true){ - - } - else { - - } - } - /** * @@ -301,12 +288,12 @@ public class Simulator extends Thread { } public boolean isLoopingBorder() { - //TODO : complete method with proper return - return false; + //ODO-COMPLETE : complete method with proper return + return loopingBorder; } public void toggleLoopingBorder() { - //TODO : complete method + //ODO-COMPLETE : complete method loopingBorder = !loopingBorder; if (enableLogs) { if (loopingBorder) { diff --git a/src/windowInterface/MyInterface.java b/src/windowInterface/MyInterface.java index f506362..34c46c0 100644 --- a/src/windowInterface/MyInterface.java +++ b/src/windowInterface/MyInterface.java @@ -393,6 +393,7 @@ public class MyInterface extends JFrame { } public void update (int stepCount) { + System.out.println("update called"); this.setStepBanner("Step : "+ stepCount); this.repaint(); }