3 Commits
v1.0 ... master

Author SHA1 Message Date
39e2475983 add screenshots
All checks were successful
Linux arm64 / Build (push) Successful in 1m4s
2025-03-19 18:40:07 +01:00
7dd3f198db fix multiplayer crash 2025-02-03 11:32:17 +01:00
11a246adfd fix multiplayer loading screen
Some checks failed
Linux arm64 / Build (push) Failing after 49s
2025-02-03 11:03:40 +01:00
6 changed files with 36 additions and 18 deletions

View File

@@ -9,6 +9,14 @@ Une application de génération et résolution de MultiDoku.
- Sudoku saves
- Multiplayer
## Screenshots 🖼
[[screenshots/menu.png]]
[[screenshots/solo.png]]
[[screenshots/multi.png]]
## Develop ☝🤓
**Pour plus de détails sur la conception et autres, regarder le 👉 [wiki](https://git.ale-pri.com/Ryuk/Sudoku/wiki)** 👈

View File

@@ -71,6 +71,9 @@ public class SudokuRenderer {
private void renderPopup() {
if (ImGui.beginPopup("editPopup")) {
if (currentCell == null)
ImGui.closeCurrentPopup();
else {
Block block = currentCell.getBlock();
int symbolCount = block.getCells().size();
for (int i = 0; i < symbolCount; i++) {
@@ -92,6 +95,7 @@ public class SudokuRenderer {
}
}
}
}
ImGui.endPopup();
}
}

View File

@@ -39,6 +39,8 @@ public class SudokuSelector {
private final SmoothProgressBar genProgressBar;
private volatile boolean genDone = false;
public SudokuSelector(boolean canGenEmptyGrid, String confirmMessage) {
this.canGenEmptyGrid = canGenEmptyGrid;
this.confirmMessage = confirmMessage;
@@ -74,6 +76,8 @@ public class SudokuSelector {
int filled = this.doku.getFilledCells().size();
int total = this.doku.getCells().size();
this.genProgressBar.render(filled / (float) total);
if (genDone)
ImGui.closeCurrentPopup();
ImGui.endPopup();
} else {
stopGenThread();
@@ -82,12 +86,14 @@ public class SudokuSelector {
private void selectSudoku(MultiDoku doku, boolean empty) {
this.doku = doku;
this.genDone = false;
ImGui.openPopup("genProgress");
this.genThread = new Thread(() -> {
try {
if (!empty) {
SudokuFactory.fillDoku(doku, Difficulty.values()[difficulty.get()]);
}
this.genDone = true;
this.onSelect.emit(this.doku);
} catch (Exception e) {
e.printStackTrace();

BIN
screenshots/menu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 KiB

BIN
screenshots/multi.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

BIN
screenshots/solo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB