Skip to content
This repository was archived by the owner on Jul 19, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Bouncing Sphere
===============

An Android-based application to play the board game "Ricochet Robots ©". It includes an artificial intelligence capable of playing the game.

Bouncing Sphere allows to record up to 15 diferent maps. So if during your games you encounter an interesting map, memorize the order to play again!

Download App
============

You can either clone this Repository and open it with android-studio to build the app
or use the direct link to a compliled version here: https://github.com/rubo77/ProjetEi4_Android/raw/apk/download/app-debug.apk

Screenshot
==========
![](http://perso-laris.univ-angers.fr/~projetsei4/1415/P2/img/screenshots/app-1.png)

Licence
=======
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.

Development
===========

Bouncing Sphere was developed in the Project EI 4 AGI: http://perso-laris.univ-angers.fr/~projetsei4/1415/P2/index.html

### Report
Download the report that was made for the university project:
http://perso-laris.univ-angers.fr/~projetsei4/1415/P2/documents/Bouncing_sphere.pdf

### Presentation
Download the slides used to present the project:
http://perso-laris.univ-angers.fr/~projetsei4/1415/P2/documents/Bouncing_sphere.pptx
8 changes: 4 additions & 4 deletions app/src/main/java/istia/ei4/ProjetISTIA/GridGameScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ public void draw(RenderManager renderManager)
renderManager.setColor(Color.BLACK);
int textS = yGrid/2-50;
renderManager.setTextSize(textS);
renderManager.drawText(10, textS, "Nombre de coups: " + nbCoups);
renderManager.drawText(10, yGrid/2+textS, "Temps: " + timeCpt/60 + ":" + timeCpt%60);
renderManager.drawText(10, textS, "Number of moves: " + nbCoups);
renderManager.drawText(10, yGrid/2+textS, "Time: " + timeCpt/60 + ":" + timeCpt%60);

if(imageLoaded)
{
Expand Down Expand Up @@ -513,11 +513,11 @@ public void sayWon()
{
if(IAMovesNumber > 0)
{
gameManager.requestToast("IA : solution trouvée en "+IAMovesNumber+" coups.", true);
gameManager.requestToast("AI: solution found in "+IAMovesNumber+" moves.", true);
}
else
{
gameManager.requestToast("Gagné en "+nbCoups+" coups.", true);
gameManager.requestToast("You won in "+nbCoups+" moves.", true);
}
updatePlayedMaps();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void update(GameManager gameManager) {
if(dt<2000){
gameManager.requestEnd();
}else{
gameManager.requestToast("Appuyer encore pour quitter.", false);
gameManager.requestToast("Press again to exit.", false);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void draw(RenderManager renderManager) {

renderManager.setColor(Color.BLACK);
renderManager.setTextSize(ts);
renderManager.drawText(10, 1*ts, "Choix du solveur :");
renderManager.drawText(10, 1*ts, "Choose solver algorithm:");
if(solverBFS)
renderManager.drawText(10, 3*ts, "BFS");
else
Expand Down
Binary file added download/app-debug.apk
Binary file not shown.