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

This commit is contained in:
uykek 2020-06-22 10:22:04 +02:00
parent f2aa3460ff
commit 0f5ef95c01

View file

@ -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;
}
}