Skip to content

Commit

Permalink
Update LightBoard.java
Browse files Browse the repository at this point in the history
  • Loading branch information
sketchysoymilk authored Apr 30, 2024
1 parent 9ffaad4 commit 6cc1f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/LightBoard.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6cc1f6e

Please sign in to comment.