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; }