Fix #4
All checks were successful
Linux arm64 / Build (push) Successful in 38s

This commit is contained in:
2025-01-29 18:32:50 +01:00
parent c16f2b8f5a
commit ff85cbef01
2 changed files with 21 additions and 2 deletions

View File

@@ -1,9 +1,12 @@
package gui.menu;
import java.util.Arrays;
import game.Player;
import imgui.ImGui;
import network.client.Client;
import network.server.Server;
import sudoku.constraint.Constraint;
import sudoku.structure.MultiDoku;
import sudoku.structure.SudokuFactory;
@@ -37,7 +40,7 @@ public class MultiPlayerView extends BaseView {
} else {
if (ImGui.button("Démarrer")) {
// temp
MultiDoku doku = SudokuFactory.createBasicXShapedMultidoku(3, SudokuFactory.DEFAULT_CONSTRAINTS);
MultiDoku doku = SudokuFactory.createBasicXShapedMultidoku(3, Arrays.asList(Constraint.Diagonal));
this.server.startGame(doku);
}
}