Skip to content

Commit

Permalink
I made another puzzle and test case to check what would happen if the…
Browse files Browse the repository at this point in the history
… cells could actually be lit, meaning there would be no contradiction. The test case passed and so I think CannotLightACellContradictionRule works correctly for all cases.
  • Loading branch information
pitbull51067 committed Nov 7, 2023
1 parent fc08c8a commit f9764aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ public void CanLightTest() throws InvalidFileFormatException {
transition.setRule(RULE);

LightUpBoard board = (LightUpBoard) transition.getBoard();
//confirm there is a contradiction somewhere on the board
//confirm there is not a contradiction somewhere on the board
Assert.assertNotNull(RULE.checkContradiction(board));

//confirm these are not required to be lit because they are already lit or unable to be
//confirm that these cells can be lit, are already lit, or that they are just black blocks
Assert.assertNotNull(RULE.checkContradictionAt(board, board.getCell(1, 3)));
Assert.assertNotNull(RULE.checkContradictionAt(board, board.getCell(3, 3)));
Assert.assertNotNull(RULE.checkContradictionAt(board, board.getCell(0, 0)));
Expand Down

0 comments on commit f9764aa

Please sign in to comment.