From 6c7e7ec61d51b65205dc17ff1a0e9a7e094dcad2 Mon Sep 17 00:00:00 2001 From: gwen Date: Thu, 29 Feb 2024 16:12:01 +0100 Subject: [PATCH] typo --- science-quest/src/components/jeux/pendu/Pendu.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/science-quest/src/components/jeux/pendu/Pendu.vue b/science-quest/src/components/jeux/pendu/Pendu.vue index fcc41c3..74fbb9a 100644 --- a/science-quest/src/components/jeux/pendu/Pendu.vue +++ b/science-quest/src/components/jeux/pendu/Pendu.vue @@ -38,8 +38,6 @@ export default{ this.nbLettresADeviner = this.motADeviner.length this.description = scientifiqueADeviner.descriptif - this.viesRestantes = 10; // TODO utiliser l'api - //verifier que le mot a deviner ne contient pas des lettres exemptées this.lettresDejaDevine = ""; this.lettresANePasFaireDevinerAuJoueur=""; @@ -96,8 +94,8 @@ export default{ this.motADeviner.split("").forEach(w =>lettresAAfficher.includes(w) ? progression += w : progression += "_"); return progression; }, - intAleatoire: function(nbPages){ - return Math.floor(Math.random() * nbPages) + intAleatoire: function(nb){ + return Math.floor(Math.random() * nb) } }, components: { PenduDessin }