Skip to content

Commit d43fa11

Browse files
committed
New version v2.1
- New warning if a puzzle is simple (solvable in less than 7 moves)
1 parent 0087b5e commit d43fa11

File tree

7 files changed

+16
-5
lines changed

7 files changed

+16
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ or use the direct link to a compliled version here: https://github.com/rubo77/Pr
1717
- choose all standard and next at the end of the setup choose to import project (Gradle)
1818
- if you get any error while syncing the project, click on the links next to the
1919
error and accept to download the missing components/add repositories and do refactor
20-
- Disable FileSettings → Experimental → Gradle → Only sync the active variant
20+
- choose buildAPK from the build menu
2121

2222
# Licence
2323
The solver algorithm implementation is developed at [DriftingDroids](https://github.com/smack42/DriftingDroids), which is released under **GNU GPL**. Therefore the Bouncing Spere code is distributed under the same Licence.

app/app.iml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
9191
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
9292
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/build-info" />
93+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/builds" />
9394
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundle_manifest" />
9495
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/check_manifest_result" />
9596
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
applicationId "com.github.sphere.bouncing"
88
minSdkVersion 15
99
targetSdkVersion 21
10-
versionCode 3
11-
versionName "2.0.1"
10+
versionCode 4
11+
versionName "2.1"
1212
}
1313
buildTypes {
1414
release {

app/src/main/java/istia/ei4/ProjetISTIA/CreditsGameScreen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void draw(RenderManager renderManager) {
4949
renderManager.drawText(10, 14*ts, "Open Source:");
5050
renderManager.setTextSize((int)(0.7*ts));
5151
renderManager.drawText(10, 15*ts, "https://git.io/fjs5H");
52-
renderManager.drawText(10, 17*ts, "Version: 2.0.1");
52+
renderManager.drawText(10, 17*ts, "Version: 2.1");
5353

5454
super.draw(renderManager);
5555
}

app/src/main/java/istia/ei4/ProjetISTIA/GridGameScreen.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,16 @@ public void update(GameManager gameManager){
219219
{
220220
isSolved = true;
221221
buttonSolve.setEnabled(true);
222+
GameSolution solution = solver.getSolution();
223+
int i=0;
224+
for(IGameMove m : solution.getMoves()){
225+
i++;
226+
}
227+
if(i<=6) {
228+
// very simple puzzle with max 6 moves
229+
// gameManager.requestToast("The AI found a solution in " + i + " moves.", true);
230+
gameManager.requestToast("AI sais: this is a simple puzzle.", true);
231+
}
222232
}
223233
}
224234

@@ -513,7 +523,7 @@ public void sayWon()
513523
{
514524
if(IAMovesNumber > 0)
515525
{
516-
gameManager.requestToast("AI: solution found in "+IAMovesNumber+" moves.", true);
526+
gameManager.requestToast("The AI found a solution in "+IAMovesNumber+" moves.", true);
517527
}
518528
else
519529
{

download/BouncingSphere_v2-0.1.apk

-1.33 MB
Binary file not shown.

download/BouncingSphere_v2-1.apk

1.31 MB
Binary file not shown.

0 commit comments

Comments
 (0)