diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/GameController.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/GameController.java index f2bb7f0..e58ddd3 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/GameController.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/GameController.java @@ -111,6 +111,17 @@ public class GameController implements IModelChangedListener, Parcelable { newLevelManager.checkAndRestock(); } + public void loadNewDailySudokuLevel(GameDifficulty gameDifficulty) { + NewLevelManager newLevelManager = NewLevelManager.getInstance(context, settings); + + int[] level = newLevelManager.loadDailySudoku(); + + loadLevel(new GameInfoContainer(DAILY_SUDOKU_ID, gameDifficulty, GameType.Default_9x9, level, null, null)); + + newLevelManager.checkAndRestock(); + + } + public int getTime() { return time; }