refactor : Cell
Some checks failed
Linux arm64 / Build (push) Failing after 29s

This commit is contained in:
Melvyn
2025-02-02 15:52:10 +01:00
parent 2460b7539e
commit 8afd51b353
4 changed files with 98 additions and 44 deletions

View File

@@ -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