Twisty Timer is a material design twisty puzzle timer for Android. It uses the TNoodle library to generate scramble sequences for all current official speedsolving puzzles.
GNU General Public License v3.0
242
stars
54
forks
source link
Fix build issues and add trainer for 3-style corners #193
The app wasn't compiling when I first cloned it, so I had to make some changes.
Two dependencies were missing: com.takisoft.fix:preference-v7:26.0.1.0 and com.pavelsikun:vintage-chroma:1.5 (as discussed here). I swapped out com.takisoft.fix:preference-v7 for androidx.preference, since it was only used in one or two places. The vintage-chroma dependency was used much more and I couldn't find any repositories that have it, so I cloned the project and added it as a submodule.
The category and locale select dialogs were crashing; simply moving the call to getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE) from onViewCreated to onCreateView seems to have solved it.
I also fiddled with some version numbers and whatnot to get the project to build.
New Trainer
I added a new trainer for 3-style corners. I mostly followed the implementation of the OLL and PLL trainers. However, I let users select cases using a regular expression since it would be inconvenient to list all 420 cases. I also let the user customize their letter scheme and buffer. And to ensure the app doesn't always give the same scramble for the same case (which would sometimes give away which case it is), I add a random prefix and suffix to the scramble.
Closes #192.
Build Issues
The app wasn't compiling when I first cloned it, so I had to make some changes.
com.takisoft.fix:preference-v7:26.0.1.0
andcom.pavelsikun:vintage-chroma:1.5
(as discussed here). I swapped outcom.takisoft.fix:preference-v7
forandroidx.preference
, since it was only used in one or two places. Thevintage-chroma
dependency was used much more and I couldn't find any repositories that have it, so I cloned the project and added it as a submodule.getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE)
fromonViewCreated
toonCreateView
seems to have solved it.New Trainer
I added a new trainer for 3-style corners. I mostly followed the implementation of the OLL and PLL trainers. However, I let users select cases using a regular expression since it would be inconvenient to list all 420 cases. I also let the user customize their letter scheme and buffer. And to ensure the app doesn't always give the same scramble for the same case (which would sometimes give away which case it is), I add a random prefix and suffix to the scramble.