feat: allow user to be wrong
Some checks failed
Linux arm64 / Build (push) Has been cancelled

This commit is contained in:
2025-02-01 21:12:13 +01:00
parent 5da915932d
commit d09bf6e9ce

View File

@@ -84,7 +84,7 @@ public class SudokuRenderer {
} }
} else { } else {
if (ImGui.button(Options.Symboles.getSymbols().get(i), cellSize)) { if (ImGui.button(Options.Symboles.getSymbols().get(i), cellSize)) {
if (currentCell.trySetValue(i)) currentCell.setSymbolIndex(i);
this.onCellChange.emit(currentCell); this.onCellChange.emit(currentCell);
if (this.doku.getDoku().isSolved()) if (this.doku.getDoku().isSolved())
this.onResolve.emit(); this.onResolve.emit();