Skip to content

Commit

Permalink
Refactor and Image addtions
Browse files Browse the repository at this point in the history
Made and added images for new contradiciton rules. Also refactored NoCellForNumber rule to NoCellForNumberRegion.
  • Loading branch information
EggyMath committed Mar 29, 2024
1 parent 196ce8f commit bc7d4a5
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class NoCellForNumberColumnContradictionRule extends ContradictionRule {
public NoCellForNumberColumnContradictionRule() {
super("SUDO-CONT-0003", "No Cell for Number (Column)",
"Process of elimination yields no valid numbers for an empty cell in a column.",
"edu/rpi/legup/images/sudoku/NoSolution.png");
"edu/rpi/legup/images/sudoku/NoCellForNumberColumn.png");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@
import edu.rpi.legup.model.gameboard.Board;
import edu.rpi.legup.model.gameboard.PuzzleElement;
import edu.rpi.legup.model.rules.ContradictionRule;
import edu.rpi.legup.puzzle.sudoku.Sudoku;
import edu.rpi.legup.puzzle.sudoku.SudokuBoard;
import edu.rpi.legup.puzzle.sudoku.SudokuCell;

import java.util.HashSet;
import java.util.Set;

public class NoCellForNumberContradictionRule extends ContradictionRule {
public class NoCellForNumberRegionContradictionRule extends ContradictionRule {

public NoCellForNumberContradictionRule() {
public NoCellForNumberRegionContradictionRule() {
super("SUDO-CONT-0001", "No Cell for Number (Region)",
"Process of elimination yields no valid numbers for an empty cell in a region.",
"edu/rpi/legup/images/sudoku/NoSolution.png");
"edu/rpi/legup/images/sudoku/NoCellForNumberRegion.png");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class NoCellForNumberRowContradictionRule extends ContradictionRule {
public NoCellForNumberRowContradictionRule() {
super("SUDO-CONT-0002", "No Cell for Number (Row)",
"Process of elimination yields no valid numbers for an empty cell in a row.",
"edu/rpi/legup/images/sudoku/NoSolution.png");
"edu/rpi/legup/images/sudoku/NoCellForNumberRow.png");
}

/**
Expand Down
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 bc7d4a5

Please sign in to comment.