diff --git a/motus/brain.cpp b/motus/brain.cpp index 2ec8102686f4c95bb4753be36e13701791cf5556..3f097513df60949d82fba4ec2ae0a85c88b63d13 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 304bf26178c152414c48238d62db6f4cedd1891f..71a17a0a9a2064c71e8d055c463e2f492d27a5cc 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;