From 9a2f731fe1a0c817bbbfbce0f5ed26affc539868 Mon Sep 17 00:00:00 2001
From: Ulysse Durand <ulysse.durand@ens-lyon.fr>
Date: Fri, 11 Apr 2025 21:09:52 +0200
Subject: [PATCH] bug de moins

---
 motus/brain.cpp | 4 ++--
 motus/ligne.cpp | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/motus/brain.cpp b/motus/brain.cpp
index 2ec8102..3f09751 100644
--- a/motus/brain.cpp
+++ b/motus/brain.cpp
@@ -75,9 +75,9 @@ void Brain::trouveMot() {
     }
 
     string line;
-    cout << mTailleMot<<endl;
+    cout << "Mot de taille : " << mTailleMot << "dans" << dico << endl;
     while (std::getline(file, line)) {
-        if (line.length() - 1 == mTailleMot) {
+        if (line.length() == mTailleMot) {
             listeMots.push_back(line);
         }
     }
diff --git a/motus/ligne.cpp b/motus/ligne.cpp
index 304bf26..71a17a0 100644
--- a/motus/ligne.cpp
+++ b/motus/ligne.cpp
@@ -24,7 +24,6 @@ bool Ligne::isGameCleared() {
         int etat1 = (bonnelettre == lettreacomparer) ? 1 : 0;
         int etat2 = Ligne::dansMot(lettreacomparer, bonmot);
         int etat = etat1+etat2;
-        cout << etat1 << etat2 << endl;
         contenu[i]->setEtat(etat);
     }
 
@@ -53,7 +52,6 @@ void Ligne::show() {
 }
 
 bool Ligne::dansMot(char lettre, string mot) {
-    cout << lettre << "  " << mot << endl;
     for (int i=0;i<mot.length();i++) {
         if (mot[i] == tolower(lettre)) {
             return true;
-- 
GitLab