Skip to content

Commit ef47158

Browse files
committed
Specified the meaning of unsolvable in setCell.
1 parent 980c5da commit ef47158

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sudoku-Solver/src/sudoku/model/SudokuBoard.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public SudokuBoard(int boxRows, int boxCols) {
4242
* <p>Setting a cells content to a number removes this number from the
4343
* possible values in all other cells sharing a structure with the specified
4444
* cell.</p>
45+
* <p>A sudoku is seen as unsolvable if and only if a structure contains a
46+
* duplicate or a cell that can not be set to any number without causing a
47+
* duplicate. It does not check if every structure can contain all numbers.
48+
* </p>
4549
*
4650
* @throws IllegalStateException Trying to overwrite a fixed cell.
4751
*/

0 commit comments

Comments
 (0)