This commit is contained in:
@@ -9,11 +9,10 @@ import java.util.Random;
|
||||
import sudoku.structure.Cell;
|
||||
import sudoku.structure.MultiDoku;
|
||||
|
||||
//TODO
|
||||
public class HintHelper {
|
||||
|
||||
public static record Hint(Cell cell, int newValue) {
|
||||
|
||||
}
|
||||
public static record Hint(Cell cell, int newValue) {}
|
||||
|
||||
public static Hint getHint(MultiDoku doku, Solver solver) {
|
||||
doku.getStateManager().pushState();
|
||||
@@ -36,7 +35,7 @@ public class HintHelper {
|
||||
if (newValue == Cell.NOSYMBOL)
|
||||
return new Hint(cell, newValue);
|
||||
// we have to change the cell value
|
||||
if (oldValue != Cell.NOSYMBOL && newValue != oldValue)
|
||||
if (oldValue != Cell.NOSYMBOL)
|
||||
return new Hint(cell, newValue);
|
||||
|
||||
// there is a valid move
|
||||
|
||||
Reference in New Issue
Block a user