Skip to content

Commit

Permalink
fixed stylecheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
B-McCusker56 committed Mar 26, 2024
1 parent 13aa225 commit 012fe90
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ public String checkRuleRawAt(TreeTransition transition, PuzzleElement puzzleElem
}

BinaryBoard modified = origBoard.copy();
modified.getPuzzleElement(puzzleElement).setData(BinaryType.WHITE.toValue());
if (contraRule.checkContradictionAt(modified, puzzleElement) != null) {
return "Black cells must be placed in a region of black cells!";
}
// modified.getPuzzleElement(puzzleElement).setData(BinaryType.WHITE.toValue());
// if (contraRule.checkContradictionAt(modified, puzzleElement) != null) {
// return "Black cells must be placed in a region of black cells!";
// }
return null;

return super.getNoContradictionMessage() + ": " + this.NO_CONTRADICTION_MESSAGE;


}

@Override
Expand Down

0 comments on commit 012fe90

Please sign in to comment.