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 Link icon

    • digit Link icon

      private final int digit
  • Constructor Details Link icon

  • Method Details Link icon

    • getDigit Link icon

      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