diff --git a/S1.02/Jeu/classes/Labyrinthe.class b/S1.02/Jeu/classes/Labyrinthe.class index 26158dd663517dd6b8b92c5ae903a149878cafd2..175637d9f824b6dfb36c1072290479045e66c79b 100644 Binary files a/S1.02/Jeu/classes/Labyrinthe.class and b/S1.02/Jeu/classes/Labyrinthe.class differ diff --git a/S1.02/Jeu/ressources/img/.nfs000000000973ce3f0000003b b/S1.02/Jeu/ressources/img/.nfs000000000973ce3f0000003b deleted file mode 100644 index 8e3f5bf7caef0287d2ab589793a70e5387d2dae4..0000000000000000000000000000000000000000 --- a/S1.02/Jeu/ressources/img/.nfs000000000973ce3f0000003b +++ /dev/null @@ -1,23 +0,0 @@ -################################################################################ -################################################################################ -#### #### -#### Labyrinthe #### -#### #### -#### #### -#### Jeu par Gambirasio Florian et Dehaine Alexandre #### -#### #### -#### #### -#### #### -#### #### -#### #### -#### #### -#### #### -#### #### -#### #### -#### #### -#### #### -#### #### -#### press enter to start #### -#### #### -################################################################################ -################################################################################ diff --git a/S1.02/Jeu/src/Labyrinthe.java b/S1.02/Jeu/src/Labyrinthe.java index e6dbea61ac20712fcfe0216190bd2247f8a3a491..9aac14037d82cb90002af8b9ed4f283682860fca 100644 --- a/S1.02/Jeu/src/Labyrinthe.java +++ b/S1.02/Jeu/src/Labyrinthe.java @@ -396,7 +396,7 @@ class Labyrinthe extends Program{ assertEquals(verif, formatIntituler(test, 48, 12)); } - void afficheIntituler(String intituler){ //prend une chaine et l'affiche selon la forme d'affichage des question (voir ressource) + void afficheIntituler(String intituler){ //prend une chaine et l'affiche selon la forme d'affichage des question (voir ressources) print(" "); for(int i = 0; i < length(intituler); i ++){ print(charAt(intituler, i)); @@ -487,6 +487,17 @@ class Labyrinthe extends Program{ } + void afficheScore(){ + String[][] file = load("ressources/score.csv"); + for(int i = 1; i < length(file,1); i ++){ + print(" "); + for(int j = 0; j < length(file,2); j ++){ + print(file[i][j] + " "); + } + println(); + } + } + Question[] listeQuestion(String cheminFichier){ //Charge le csv des question et renvoie un tableau de question qui possède une Question par case String[][] lQuestion = load(cheminFichier); Question[] res = new Question[length(lQuestion, 1)-1]; @@ -706,5 +717,8 @@ class Labyrinthe extends Program{ print(readFile("ressources/img/Lose.txt", true)); } ajoutScore(tabScore, joueur.pseudo, joueur.score); + if(equals(toLowerCase(readString()), "s")){ + afficheScore(); + } } } \ No newline at end of file