Skip to content
Snippets Groups Projects
Commit 1c18a84f authored by HydroFlo's avatar HydroFlo
Browse files

Merge branch 'main' of https://github.com/HydroFlo/S1.02

parents 4eccbc1b 61e7c1f6
No related branches found
No related tags found
No related merge requests found
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@......................................................................@
@......................................................................@
@......................................................................@
@......................................................................@
@......................................................................@
@......................................................................@
@......................................................................@
@.....................................................................S@
@..................................P..................................S@
@......................................................................@
@......................................................................@
@......................................................................@
@......................................................................@
@......................................................................@
@......................................................................@
@......................................................................@
@..................................SS..................................@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
\ No newline at end of file
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
@@@@@@@@@@@@@@@@@@@@@@@@..............................................S@ @@@@@@@@@@@@@@@@@@@@@@@@..............................................S@
@@@@@@@@@@@@@@@@@@@@@@@@..............................................S@ @@@@@@@@@@@@@@@@@@@@@@@@..............................................S@
@@@@@@@@@@@@@@@@@@@@@@@@...............................................@ @@@@@@@@@@@@@@@@@@@@@@@@...............................................@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@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@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@...............................................@@@@@@@@@@@@@@@@@@@@@@@@
@S..............................................@@@@@@@@@@@@@@@@@@@@@@@@
@S..............................................@@@@@@@@@@@@@@@@@@@@@@@@
@...............................................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
\ No newline at end of file
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@...........SS...........@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
\ No newline at end of file
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@...........SS...........@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
\ No newline at end of file
...@@ -15,7 +15,11 @@ class Labyrinthe extends Program{ ...@@ -15,7 +15,11 @@ class Labyrinthe extends Program{
newSalle(7,"1001"), newSalle(7,"1001"),
newSalle(8,"1011"), newSalle(8,"1011"),
newSalle(9,"0011"), newSalle(9,"0011"),
newSalle(10,"0110") newSalle(10,"0110"),
newSalle(11,"0100"),
newSalle(12,"0001"),
newSalle(13,"0010"),
newSalle(14,"1000"),
}; };
...@@ -132,6 +136,7 @@ class Labyrinthe extends Program{ ...@@ -132,6 +136,7 @@ class Labyrinthe extends Program{
} }
if(j==length(lab,2)-1){ if(j==length(lab,2)-1){
droite = "0000"; droite = "0000";
println("DROITE");
} }
println(haut); println(haut);
println(droite); println(droite);
...@@ -159,10 +164,10 @@ class Labyrinthe extends Program{ ...@@ -159,10 +164,10 @@ class Labyrinthe extends Program{
}else{resultat=resultat+'.';} }else{resultat=resultat+'.';}
println(resultat); println(resultat);
int nbalea=(int)(random()*10); int nbalea=(int)(random()*10);
/*while(!equals(salles[nbalea].sorties,choixAlea(resultat))){ while(!equals(salles[nbalea].sorties,choixAlea(resultat))){
print("Salle vérifier : "); print("Salle vérifier : ");
println(salles[nbalea].sorties); println(salles[nbalea].sorties);
nbalea=(int)(random()*10); nbalea=(int)(random()*14);
//println(nbalea); //println(nbalea);
}*/ }*/
lab[i][j]=salles[nbalea]; lab[i][j]=salles[nbalea];
...@@ -181,7 +186,6 @@ class Labyrinthe extends Program{ ...@@ -181,7 +186,6 @@ class Labyrinthe extends Program{
Salle[][] genererLab(int nbSalle){ // genere un Layrinthe de nbSalle salle et d'une taille de 72 x 19 par salle !!!! IL FAUT QUE LE nbSalle SOINT IMPAIRE !!!! Salle[][] genererLab(int nbSalle){ // genere un Layrinthe de nbSalle salle et d'une taille de 72 x 19 par salle !!!! IL FAUT QUE LE nbSalle SOINT IMPAIRE !!!!
Salle[][] lab = new Salle[nbSalle][nbSalle]; Salle[][] lab = new Salle[nbSalle][nbSalle];
lab[(nbSalle/2)+1][(nbSalle/2)+1] = salles[3];
lab[0][0] = salles[0]; lab[0][0] = salles[0];
for(int i=0;i<length(lab,1);i++){ for(int i=0;i<length(lab,1);i++){
for(int j=0;j<length(lab,2);j++){ for(int j=0;j<length(lab,2);j++){
...@@ -540,7 +544,7 @@ class Labyrinthe extends Program{ ...@@ -540,7 +544,7 @@ class Labyrinthe extends Program{
} }
void algorithm(){ void algorithm(){
Salle[][] lab = genererLab(5); //genere le Layrinthe Salle[][] lab = genererLab(3); //genere le Layrinthe
String[][] questionTemp = load("ressources/ListeQuestion.csv"); String[][] questionTemp = load("ressources/ListeQuestion.csv");
print("Voulez vous ajouter des question ? oui (o), non (autre) : "); print("Voulez vous ajouter des question ? oui (o), non (autre) : ");
boolean ques = equals(toLowerCase(readString()), "o"); boolean ques = equals(toLowerCase(readString()), "o");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment