From 6cc1f6e0b7473121a273df628fdf9d44bdb1582e Mon Sep 17 00:00:00 2001 From: sketchysoymilk <143027784+sketchysoymilk@users.noreply.github.com> Date: Mon, 29 Apr 2024 22:30:37 -0700 Subject: [PATCH] Update LightBoard.java --- src/main/java/LightBoard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/LightBoard.java b/src/main/java/LightBoard.java index 8c591b1..dd586fc 100644 --- a/src/main/java/LightBoard.java +++ b/src/main/java/LightBoard.java @@ -44,7 +44,7 @@ public boolean evaluateLight(int row, int col) if(lights[r][col] == true) sum++; } - if(sum/3 == 0) + if(sum%3 == 0) return true; return false; }