Skip to content

Commit

Permalink
Updated binary contradiction images
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharybonagura committed Jul 16, 2024
1 parent 616ff88 commit 621b581
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class CompleteRowColumnDirectRule extends DirectRule {
public CompleteRowColumnDirectRule() {
super(
"BINA-BASC-0003",
"Complete Row Column",
"Complete Row/Column",
"If a row/column of length n contains n/2 of a single value, the remaining cells must contain the other value",
"edu/rpi/legup/images/binary/rules/CompleteRowColumnDirectRule.png");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
import edu.rpi.legup.puzzle.binary.BinaryType;
import java.util.ArrayList;

public class DuplicateRowsOrColumnsContradictionRule extends ContradictionRule {
public class DuplicateRowsColumnsContradictionRule extends ContradictionRule {
private final String NO_CONTRADICTION_MESSAGE =
"Does not contain a contradiction at this index";
private final String INVALID_USE_MESSAGE = "Row or column must have a value in each cell";

public DuplicateRowsOrColumnsContradictionRule() {
public DuplicateRowsColumnsContradictionRule() {
super(
"BINA-CONT-0003",
"Duplicate Rows Or Columns",
"There must not be two rows or two columns that are duplicates",
"edu/rpi/legup/images/binary/rules/DuplicateRowOrColumnContradictionRule.png");
"Duplicate Rows/Columns",
"There must not be two of the same row or two of the same column in the puzzle",
"edu/rpi/legup/images/binary/rules/DuplicateRowsColumnsContradictionRule.png");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public EliminateTheImpossibleDirectRule() {
super(
"BINA-BASC-0004",
"Eliminate The Impossible",
"If three adjacent empty cells are open, prevents a trio of numbers to exist",
"Out of the remaining empty cells in this row or column, this digit must go here, otherwise there will be a future contradiction",
"edu/rpi/legup/images/binary/rules/EliminateTheImpossibleDirectRule.png");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@
import edu.rpi.legup.puzzle.binary.BinaryCell;
import edu.rpi.legup.puzzle.binary.BinaryType;

import java.util.ArrayList;
import java.util.Set;

public class UnbalancedRowOrColumnContradictionRule extends ContradictionRule {
public class UnbalancedRowColumnContradictionRule extends ContradictionRule {

private final String NO_CONTRADICTION_MESSAGE =
"Does not contain a contradiction at this index";
private final String INVALID_USE_MESSAGE = "Row or column must have a value in each cell";

public UnbalancedRowOrColumnContradictionRule() {
public UnbalancedRowColumnContradictionRule() {
super(
"BINA-CONT-0002",
"Unbalanced Row Or Column",
"Unbalanced Row/Column",
"Each row or column must contain an equal number of zeros and ones",
"edu/rpi/legup/images/binary/rules/UnbalancedRowColumnContradictionRule.png");
}
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 621b581

Please sign in to comment.