Skip to content
Snippets Groups Projects
Commit 9a2f731f authored by Ulysse Durand's avatar Ulysse Durand
Browse files

bug de moins

parent c938c159
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment