Commit graph

229 commits

Author SHA1 Message Date
ErikWaegerle
1106ee84bb Adjusting the SettingsActivity
Case discrimination with AppCompatDelegate to cover both cases.
2020-06-24 16:37:59 +02:00
uykek
0f5ef95c01 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 2020-06-22 10:22:04 +02:00
uykek
f2aa3460ff Modify NewLevelManager's loadDailySudoku() method so that the probability of the daily sudoku's difficulty being 'challenge' is only 10% 2020-06-17 18:33:59 +02:00
ErikWaegerle
c115b6c990 Merge branch 'Sudoku-v3.0' of https://github.com/SecUSo/privacy-friendly-sudoku into Sudoku-v3.0 2020-06-15 18:44:15 +02:00
ErikWaegerle
652095f975 Move the DailySudokuActivity to org.secuso.privacyfriendlysudoku.ui package 2020-06-15 13:55:49 +02:00
uykek
87a80de4b5 Change launchmode of GameActivityto 'singleTask' and add onNewIntent method to GameActivity 2020-06-15 09:05:56 +02:00
ErikWaegerle
c8a6385e64 Adaptation of the GameActivity and Manifest.xml to include deeplinking
Links of the following format
"http://sudoku" also accepted and loaded as game field
2020-06-13 20:16:51 +02:00
uykek
a8629fc75c Adjust GameInfoContainer and GameActivity so that importing a sudoku containing an invalid fixed value (e.g. a 9x9 sudoku containing an 'A' as a fixed value) no longer causes an exception. 2020-06-13 15:56:37 +02:00
uykek
8dfa0f5317 Change onCreate() method of DailySudokuActivity so that the difficulty of the daily sudoku is only calculated once a day 2020-06-07 11:40:45 +02:00
uykek
05cc8aec51 Add new dialog style to all AlertDialog instances within the app 2020-06-07 10:34:23 +02:00
uykek
d76c4b7b50 Fix bug which causes vector graphics which receive their color from theme attributes to appear invisible when placed on an image button. 2020-06-06 12:51:39 +02:00
uykek
c6262b3789 Change method which rotates 'ic_create_black_48dp' drawable so that it is capable of rotating the new vector drawable 2020-06-02 18:36:14 +02:00
ErikWaegerle
a8c8280dc4 Modification of the onCreate() method
1.) Display of the current difficulty of the DailySudokus

Modification of the getView() method
1.) Calculation and display of the Daily Sudoku data
2020-06-01 01:22:15 +02:00
ErikWaegerle
236be00504 Modification of the onCreate() method
1.) Display and output of the cumulated number of required hints
2.) Display and output of the game time from the DailySudokus
3.) Display and output of the cumulated total playing time of DailySudokus
2020-05-31 18:15:32 +02:00
uykek
91f7cc6d2b Add method which calculates the amount of seconds that were needed to solve a DailySudoku object based on its "timeNeeded" attribute 2020-05-28 00:25:12 +02:00
uykek
a015bd5597 Calculate difficulty of daily sudoku after sudoku has been generated instead of assigning a difficulty pre-generation 2020-05-28 00:18:01 +02:00
uykek
861015ae66 Stop player from playing the daily sudoku again if they have solved it already. 2020-05-27 23:22:26 +02:00
uykek
94b7b82bb4 Only calculate the daily sudoku once a day; after the DailySudokuActivity's floating action button has been pressed for the first time a day, load the daily sudoku from the 'saves' directory 2020-05-27 23:09:09 +02:00
uykek
2a90d403cb Merge branch 'Sudoku-v3.0' of https://github.com/SecUSo/privacy-friendly-sudoku into Sudoku-v3.0 2020-05-27 22:11:38 +02:00
ErikWaegerle
f179518f5a Adding the onClick() method, the SudokuListAdapter() and the getView() method
This adds functionality to the button and the customization/implementation to display the completed DailySudoku in list form.
2020-05-27 21:58:32 +02:00
uykek
29933c01eb Allow eleven (instead of ten) sudokus to be saved by the GameStateManager if one of them is the daily sudoku 2020-05-27 21:44:11 +02:00
uykek
56db7277ca Exclude daily sudoku from the sudokus displayed in the LoadGameActivity 2020-05-27 20:50:42 +02:00
uykek
e1ded11056 Fix bug that caused an exception if the app tries to upgrade the database 2020-05-27 20:36:58 +02:00
ErikWaegerle
1dc60679d3 Modify the onCreate() method to ensure that only in case of the DailySudoku the DailySudoku is loaded 2020-05-27 20:15:28 +02:00
ErikWaegerle
9f999b5512 Added the method loadNewDailySudokuLevel.
Is responsible for loading the DailySudoku.
2020-05-27 20:04:08 +02:00
ErikWaegerle
af812f6bed Merge branch 'Sudoku-v3.0' of https://github.com/SecUSo/privacy-friendly-sudoku into Sudoku-v3.0 2020-05-26 21:59:36 +02:00
uykek
88a7f7813e Add methods which generate a fixed sudoku based on the current date 2020-05-26 20:15:33 +02:00
uykek
01888989a3 Merge branch 'Sudoku-v3.0' of https://github.com/SecUSo/privacy-friendly-sudoku into Sudoku-v3.0 2020-05-26 20:14:07 +02:00
ErikWaegerle
b863c7a88c Implementing/adding the functionality of the "Menu Button" and the "Back Button" in the ActionBar. 2020-05-26 16:43:18 +02:00
ErikWaegerle
5d620829c4 1.) Creating the class DailySudokuActivity
2.) Implementing the onCreate() method
2020-05-25 20:21:12 +02:00
ErikWaegerle
e10746822d Extension of the method goToNavigateItem() with dailySudoku Item. Adds NavigationDrawer functionality. 2020-05-25 20:04:02 +02:00
uykek
a2c52f0891 Reserve maximum id to identify daily sudoku within app, add method which saves a sudoku to the daily sudoku data base using the current date as its id 2020-05-25 16:53:34 +02:00
uykek
9c31f0d869 Update database version 2020-05-22 14:50:59 +02:00
uykek
8b8f72b2e7 Add methods to fetch and save daily sudokus to the DatabaseHelper class 2020-05-21 12:33:32 +02:00
uykek
472f691695 Add DailySudokuColumns and DailySudoku classes, which extend LevelColumns and Level by adding the attributes "hints used" and "time needed", for the daily sudoku database table 2020-05-20 18:21:09 +02:00
uykek
c4136f40d2 Merge branch 'Sudoku-v3.0' of https://github.com/SecUSo/privacy-friendly-sudoku into Sudoku-v3.0 2020-05-20 14:32:22 +02:00
Erik Waegerle
eb5aa197f0 The database will be extended by DailySudokus. A new table was created for this purpose 2020-05-20 12:32:41 +02:00
uykek
c36badaf18 Add setter for QQWing's Random attribute that lets you initialize it with a seed 2020-05-19 22:36:24 +02:00
uykek
25e92172f0 Fix mistake which caused impossible imported sudokus to be saved to database. 2020-05-19 18:23:41 +02:00
uykek
26d5cab369 Notify user if a sudoku they tried to import is impossible to solve and close app afterwards. 2020-05-15 19:07:50 +02:00
uykek
a1b13a49e5 Compute difficulty of sudokus which are imported via deeplink 2020-05-14 10:31:25 +02:00
uykek
385959d9eb Expand GameActivity so that it accepts a string containing an enconded sudoku board (for now with default difficulty 'easy') 2020-05-13 23:24:03 +02:00
uykek
c0743f7a08 Make a few improvements on the implementation of the 'copy to clipboard' button. 2020-05-09 19:37:57 +02:00
uykek
9c9a0c1221 Implement the functionality of the 'share' button of the ShareBoardDialogFragment, which is to share a board's code with other apps. 2020-05-09 18:37:00 +02:00
uykek
5a098d8ac5 Add methods to generate the code necessary for sharing a specific sudoku board 2020-05-09 18:36:22 +02:00
uykek
4134013fe9 Change implementation of of ShareBoardDialogFragment to use databinding instead of 'findViewById' 2020-05-09 14:05:43 +02:00
uykek
43f8d10745 Add a subclass of DialogFragment using the previously added layout to GameActivity and a new interface to be implemented by all listeners for the subclass. 2020-05-09 13:14:46 +02:00
Christopher Beckmann
ca76ef164a Fixed a bug that would prevent errors from being highlighted. 2020-04-30 11:49:37 +02:00
Christopher Beckmann
aa4c615598 Migrated to AndroidX. Performance improvements. Adaptive Icon added.
Fixes #51, Fixes #38, Fixes #8
2020-04-23 12:02:06 +02:00
Christopher Beckmann
7cc9c8538c Fixes #34. Worked on Issue #18. The lines are now drawn correctly. 2017-12-31 15:10:19 +01:00
Christopher Beckmann
84995affe5 Fixed #32 and added the Tutorial to the NavigationDrawer. Some string files still need to be translated. 2017-06-29 16:57:29 +02:00
Karola Marky
8298506d51 Old Welcome removed 2017-06-29 15:25:16 +02:00
Karola Marky
cb24d47868 Tutorial updated 2017-06-29 15:23:34 +02:00
Christopher Beckmann
0019663aa7 Merge remote-tracking branch 'origin/master' 2017-06-29 14:34:32 +02:00
Christopher Beckmann
7a3347718a Fixed #22. 2017-06-29 14:34:08 +02:00
Christopher Beckmann
7c651ae351 Added presaved levels for 12x12 easy difficulty 2017-06-25 22:36:45 +02:00
Karola Marky
ca7cc3bb03 Version number automatic 2017-06-25 21:50:51 +02:00
Christopher Beckmann
f7edfbb34b Settings and Toolbar update 2017-06-25 21:10:55 +02:00
Christopher Beckmann
1aa5500c64 Generator Changes and reworked the Saved Level Structure 2017-06-25 20:14:34 +02:00
Karola Marky
268c4da61c Splash Screen added and gitignore update 2016-11-07 11:45:48 +02:00
Christopher Beckmann
44833dd8c0 Minor String changes and welcome screen now links to the help page. 2016-10-18 14:27:23 +02:00
Christopher Beckmann
f9cb4be89b Updated to new design and fixed a timer issue. 2016-10-15 22:17:18 +02:00
Christopher Beckmann
7e3f4f28ba Fixed Issue#9 . Now correctly works on RTL locals. 2016-03-29 18:37:25 +02:00
Christopher Beckmann
1362f3bbed Added more pregenerated levels, so that no new levels have to be generated when starting the App for the first time. 2016-03-29 18:04:21 +02:00
Gongxter
eb6fa74151 scrren keep on fixed 2016-02-29 15:16:11 +01:00
Christopher Beckmann
74f4bf1c0d Fixed another crash occuring when changing the screen orientation when a dialog is opened. 2016-02-20 23:11:25 +01:00
Christopher Beckmann
b3218873fe Fixed a crash with the WelcomeDialog. Also merged. 2016-02-20 21:53:44 +01:00
Christopher Beckmann
a522f18d13 Merge remote-tracking branch 'origin/master'
Conflicts:
	app/src/main/java/org/secuso/privacyfriendlysudoku/ui/MainActivity.java
	app/src/main/res/drawable/ic_star_blue_48dp.png
	app/src/main/res/drawable/ic_star_grey_48dp.png
	app/src/main/res/drawable/ratingbar.xml
2016-02-20 21:01:21 +01:00
Christopher Beckmann
a0d5b66934 Fixed the dificulty stars on the main page for devices with an API level < 21. 2016-02-20 20:58:46 +01:00
Gongxter
d3d8839e3e Added dialog and text for dialog for the welcome screen 2016-02-20 15:06:55 +01:00
Christopher Beckmann
fa54fe0a87 Added the Welcome Dialog. Content still has to be done. 2016-02-20 13:36:20 +01:00
Christopher Beckmann
815b962fe8 Added an option, that will reset the timer when resetting the game board. 2016-02-19 19:09:29 +01:00
Christopher Beckmann
72786d070e Fixed a bug with the Hint button. When pressed when having notes activated, it would set notes instead of revealing the selected field.
Also added the sudoku ic_launcher icon.
2016-02-19 16:27:38 +01:00
Gongxter
4475d610b7 fixed some issues 2016-02-18 14:46:39 +01:00
Christopher Beckmann
763ea0b6e7 Found and fixed a bug, that would prevent the game from being deleted, when using the regular input method for the last number to solve the puzzle.
Also found and fixed a bug, where the game would not save the amount of hints used, when continueing a game.
2016-02-04 00:45:14 +01:00
Christopher Beckmann
6e96ee8904 ErrorList is now updated when the field is updated. 2016-02-03 20:14:13 +01:00
Christopher Beckmann
ad4eb476f9 Added Chinese language. All languages are now done. At least every langugage that we planned to support. 2016-02-02 23:16:51 +01:00
Gongxter
6aacff8e6a fixed arrowMarker for error dependencies 2016-02-02 17:36:10 +01:00
Christopher Beckmann
e5404acd4d Added Error Highlighting 2016-02-02 16:14:31 +01:00
Christopher Beckmann
ee617bc4c3 Added a custom style for the RatingBar. Fixed some layout issues with tablets and very small screens. 2016-02-02 04:50:05 +01:00
Gongxter
3819a4e006 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	app/src/main/res/xml/pref_help_general.xml
2016-02-01 16:25:18 +01:00
Gongxter
1e79a289df rating bar edited 2016-02-01 16:23:54 +01:00
Christopher Beckmann
1f64e2391d Languages German, Spanish, Russian done. Chinese still left.
Also fixed a bug with displaying the time when the game is finished and the screen is rotated.
2016-02-01 14:43:06 +01:00
Christopher Beckmann
b44e03fded Fixed a bug, where the GameUI would be unresponsive after starting another activity. 2016-01-31 16:58:47 +01:00
Gongxter
e680fc5a9a rating bar edited 2016-01-31 14:54:37 +01:00
Christopher Beckmann
a20ce17240 Merge remote-tracking branch 'origin/master' 2016-01-31 14:54:05 +01:00
Christopher Beckmann
00c029fbbc Renamed some stuff and fixed minor bugs. 2016-01-31 14:53:54 +01:00
Gongxter
9c3579d4af winscreen and helppage created fixed text size 2016-01-31 14:27:49 +01:00
Gongxter
06dd3fa9fa Merge remote-tracking branch 'origin/master'
# Conflicts:
#	app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java
2016-01-31 14:24:53 +01:00
Christopher Beckmann
229f167c2e Fixed the Delete Button. It would not delete notes. 2016-01-31 14:10:33 +01:00
Christopher Beckmann
a4e7a693f9 Corrected Parceable Implementation. Wasn't aware that my code was not called. Had to force it to clear the app out of the memory. 2016-01-31 12:46:22 +01:00
Christopher Beckmann
54bf935685 Modified the Landscape GameView a bit. Looks a lot cleaner now. Not tested on smaller and bigger devices yet. Also added the landscape version of the stats page. 2016-01-31 01:06:34 +01:00
Gongxter
c4d2999680 winscreen and helppage created 2016-01-30 23:20:05 +01:00
Christopher Beckmann
91530e3efa Made the GameActivity Rotatable. (Sounds easy.... wasn't though) 2016-01-30 23:05:32 +01:00
Christopher Beckmann
1b31b5cfe2 Added some Layouts for landscape ordientation as well as some for high density screens.
Also made the arrows in the main menu clickable.
2016-01-30 12:38:26 +01:00
Gongxter
4724612c1e stats reworked fixed a bug 2016-01-21 16:52:08 +01:00
Gongxter
3d110b57c5 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	app/src/main/java/org/secuso/privacyfriendlysudoku/controller/SaveLoadStatistics.java
#	app/src/main/res/drawable/standalone_button.xml
2016-01-21 16:12:57 +01:00
Christopher Beckmann
8db2f6ec91 Added some strings and HintListener 2016-01-21 16:08:48 +01:00
Gongxter
8b98f2531d timer now always counts in stats 2016-01-21 15:39:00 +01:00
Christopher Beckmann
06deb5b439 Fixed Issue#6 and fixed an activity stack bug, that caused the app to have multiple main menus in the stack. 2016-01-21 14:26:59 +01:00