more menus
Some checks failed
Linux arm64 / Build (push) Failing after 14m21s

This commit is contained in:
2025-01-23 15:50:10 +01:00
parent 7ab1173fb3
commit b05351bc20
6 changed files with 117 additions and 8 deletions

View File

@@ -23,9 +23,9 @@ public class SudokuView extends BaseView {
private int currentIndex = -1;
private final Map<Block, Color> colorPalette;
public SudokuView(StateMachine stateMachine, int size) {
public SudokuView(StateMachine stateMachine, int width, int height) {
super(stateMachine);
MultiDoku doku = SudokuFactory.createBasicEmptySquareSudoku(size);
MultiDoku doku = SudokuFactory.createBasicEmptyRectangleSudoku(width, height);
this.sudoku = doku.getSubGrid(0);
this.colorPalette = new HashMap<>();
initColors();
@@ -78,6 +78,9 @@ public class SudokuView extends BaseView {
}
}
renderPopup();
if (ImGui.button("Résoudre")) {
// TODO: solve
}
renderReturnButton();
}