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) {