Class XImmutableCell

java.lang.Object
algs13.xbacktrack.xsudoku.XSudokuCell
algs13.xbacktrack.xsudoku.XImmutableCell

final class XImmutableCell extends XSudokuCell
An immutable cell represents a clue provided in the Sudoku puzzle. The digit associated with an immutable cell cannot be changed by the solver.
  • Field Details

    • digit

      private final int digit
  • Constructor Details

  • Method Details

    • getDigit

      int getDigit()
      Description copied from class: XSudokuCell
      Get the digit currently associated with this cell.
      Specified by:
      getDigit in class XSudokuCell
      Returns:
      the digit associated with this cell