Skip to content

Commit

Permalink
Merge pull request #147 from Bram-Hub/nurikabe-rule_name_changes
Browse files Browse the repository at this point in the history
Nurikabe rule name changes
  • Loading branch information
Chase-Grajeda authored Jun 16, 2022
2 parents 9e0300c + 0ddb91a commit e60e195
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
import edu.rpi.legup.puzzle.nurikabe.NurikabeCell;
import edu.rpi.legup.puzzle.nurikabe.NurikabeType;

public class UnreachableBasicRule extends BasicRule {
public UnreachableBasicRule() {
public class CannotReachCellBasicRule extends BasicRule {
public CannotReachCellBasicRule() {
super("NURI-BASC-0008",
"Unreachable white region",
"Can't Reach Cell",
"A cell must be black if it cannot be reached by any white region",
"edu/rpi/legup/images/nurikabe/rules/Unreachable.png");
}
Expand All @@ -29,7 +29,7 @@ public UnreachableBasicRule() {
*/
@Override
protected String checkRuleRawAt(TreeTransition transition, PuzzleElement puzzleElement) {
ContradictionRule contraRule = new CantReachWhiteContradictionRule();
ContradictionRule contraRule = new UnreachableWhiteCellContradictionRule();

NurikabeBoard destBoardState = (NurikabeBoard) transition.getBoard();
NurikabeCell cell = (NurikabeCell) destBoardState.getPuzzleElement(puzzleElement);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
import java.util.ArrayList;
import java.util.Set;

public class CantReachWhiteContradictionRule extends ContradictionRule {
public class UnreachableWhiteCellContradictionRule extends ContradictionRule {

private final String NO_CONTRADICTION_MESSAGE = "Cell at this index can be reached";
private final String INVALID_USE_MESSAGE = "Does not contain a contradiction at this index";

public CantReachWhiteContradictionRule() {
public UnreachableWhiteCellContradictionRule() {
super("NURI-CONT-0002",
"Unreachables are Black",
"Unreachable White Cell",
"A white cell must be able to reach a white region",
"edu/rpi/legup/images/nurikabe/contradictions/CantReach.png");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ NURI-BASC-0004 : FillinBlackBasicRule
NURI-BASC-0005 : FillinWhiteBasicRule
NURI-BASC-0006 : PreventBlackSquareBasicRule
NURI-BASC-0007 : SurroundRegionBasicRule
NURI-BASC-0008 : UnreachableBasicRule
NURI-BASC-0008 : CannotReachCellBasicRule
NURI-BASC-0009 : WhiteBottleNeckBasicRule

NURI-CONT-0001 : BlackSquareContradictionRule
NURI-CONT-0002 : CantReachWhiteContradictionRule
NURI-CONT-0002 : UnreachableWhiteCellContradictionRule
NURI-CONT-0003 : IsolateBlackContradictionRule
NURI-CONT-0004 : MultipleNumbersContradictionRule
NURI-CONT-0005 : NoNumberContradictionRule
Expand Down

0 comments on commit e60e195

Please sign in to comment.