From 9c7c253ef1405e3660f0f86a8baacf255879b016 Mon Sep 17 00:00:00 2001 From: Blavignac Leonardo Date: Tue, 6 Dec 2022 17:28:05 +0100 Subject: [PATCH] lea modif --- script.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/script.js b/script.js index f72b66c..83a34ce 100644 --- a/script.js +++ b/script.js @@ -52,13 +52,12 @@ function Supprimer() { } function Enter() { - if (free_box[1]==5 && free_box[0]!=6) { - - verifLettres(word); + if (verifWord() && free_box[0]!=6) { + write_result(verifLettres(word)); + free_box[0]+=1; + free_box[1]=1; word=""; } - free_box[0]+=1; - free_box[1]=1; } function verifLettres(aWord) {