Package algs13.xbacktrack.xsudoku
Class XImmutableCell
java.lang.Object
algs13.xbacktrack.xsudoku.XSudokuCell
algs13.xbacktrack.xsudoku.XImmutableCell
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 Summary
Fields inherited from class algs13.xbacktrack.xsudoku.XSudokuCell
subgridId, x, y
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) int
getDigit()
Get the digit currently associated with this cell.
-
Field Details
-
digit
-
-
Constructor Details
-
XImmutableCell
XImmutableCell(int x, int y, int digit)
-
-
Method Details
-
getDigit
int getDigit()Description copied from class:XSudokuCell
Get the digit currently associated with this cell.- Specified by:
getDigit
in classXSudokuCell
- Returns:
- the digit associated with this cell
-