From 1aa5500c64fb7099f2323e72c1062051c8f2ccfb Mon Sep 17 00:00:00 2001 From: Christopher Beckmann Date: Sun, 25 Jun 2017 20:14:34 +0200 Subject: [PATCH] Generator Changes and reworked the Saved Level Structure --- .idea/misc.xml | 88 +++++ app/app.iml | 36 +- app/build.gradle | 6 +- app/src/main/AndroidManifest.xml | 4 + .../controller/GameController.java | 35 ++ .../controller/GameStateManager.java | 1 - .../controller/GeneratorService.java | 309 ++++++++++++++++++ .../controller/NewLevelManager.java | 206 +++++++++--- .../controller/Symbol.java | 4 +- .../controller/database/DatabaseHelper.java | 97 ++++++ .../database/columns/LevelColumns.java | 90 +++++ .../controller/database/model/Level.java | 65 ++++ .../controller/qqwing/QQWing.java | 38 ++- .../privacyfriendlysudoku/game/GameBoard.java | 2 + .../game/GameDifficulty.java | 4 +- .../ui/LoadGameActivity.java | 2 + .../ui/MainActivity.java | 27 +- .../ui/StatsActivity.java | 11 +- .../ui/view/SudokuFieldLayout.java | 42 +-- .../main/res/layout-land/fragment_stats.xml | 68 +++- .../res/layout-xlarge-land/fragment_stats.xml | 65 ++++ .../main/res/layout-xlarge/fragment_stats.xml | 67 +++- app/src/main/res/layout/fragment_stats.xml | 70 +++- app/src/main/res/menu/menu_drawer_main.xml | 13 +- app/src/main/res/values/strings.xml | 4 +- .../main/res/xml/pref_settings_general.xml | 5 + build.gradle | 2 +- gradle/wrapper/gradle-wrapper.properties | 4 +- 28 files changed, 1231 insertions(+), 134 deletions(-) create mode 100644 .idea/misc.xml create mode 100644 app/src/main/java/org/secuso/privacyfriendlysudoku/controller/GeneratorService.java create mode 100644 app/src/main/java/org/secuso/privacyfriendlysudoku/controller/database/DatabaseHelper.java create mode 100644 app/src/main/java/org/secuso/privacyfriendlysudoku/controller/database/columns/LevelColumns.java create mode 100644 app/src/main/java/org/secuso/privacyfriendlysudoku/controller/database/model/Level.java diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..50282c1 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + Android + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/app.iml b/app/app.iml index bc02165..44f924e 100644 --- a/app/app.iml +++ b/app/app.iml @@ -9,7 +9,6 @@