Package algs13.xbacktrack.xsudoku
Class XSudokuCell
java.lang.Object
algs13.xbacktrack.xsudoku.XSudokuCell
- Direct Known Subclasses:
XImmutableCell
,XMutableCell
A cell in a Sudoku grid.
Each cell has an x (row) coordinate and y (column) coordinate, and is part of
a subgrid. These properties are fixed at the time a cell is constructed.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) abstract int
getDigit()
Get the digit currently associated with this cell.
-
Field Details
-
x
-
y
-
subgridId
-
-
Constructor Details
-
XSudokuCell
XSudokuCell(int x, int y)
-
-
Method Details
-
getDigit
Get the digit currently associated with this cell.- Returns:
- the digit associated with this cell
-