From 0f5ef95c018e2d6a57f9850793216af56e60b8d0 Mon Sep 17 00:00:00 2001 From: uykek Date: Mon, 22 Jun 2020 10:22:04 +0200 Subject: [PATCH] Fix problem with previously added method that caused the generation of a challenge sudoku as the daily sudoku to be more, rather than less, likely --- .../privacyfriendlysudoku/controller/QQWingController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/QQWingController.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/QQWingController.java index 44697fa..eb78863 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/QQWingController.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/QQWingController.java @@ -64,7 +64,8 @@ public class QQWingController { generator.setRecordHistory(true); generator.generatePuzzle(); - if (difficulty == GameDifficulty.Unspecified || difficulty == generator.getDifficulty()) { + if (difficulty == GameDifficulty.Unspecified && generator.getDifficulty() != GameDifficulty.Challenge + || difficulty == generator.getDifficulty()) { havePuzzle = true; } }