This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user