All words in words.txt is not printed anymore
This commit is contained in:
parent
17944c4d42
commit
bf53770297
1 changed files with 4 additions and 6 deletions
10
main.cc
10
main.cc
|
@ -15,15 +15,13 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
auto candidates = read_candidates(file);
|
auto candidates = read_candidates(file);
|
||||||
|
std::cout << "File (" << argv[1] << ") loaded. " << candidates.size() << " candidates available.\n";
|
||||||
|
|
||||||
std::string wrong;
|
std::string wrong;
|
||||||
letters_and_indices green, yellow;
|
letters_and_indices green, yellow;
|
||||||
|
|
||||||
while (!candidates.empty()) {
|
while (!candidates.empty()) {
|
||||||
std::cout << "Remaining candidates: \n";
|
std::cout << "Remaining candidates: " << candidates.size() << "\n\n";
|
||||||
for (const auto &word : candidates) {
|
|
||||||
std::cout << word << " ";
|
|
||||||
}
|
|
||||||
std::cout << "\n\n";
|
|
||||||
|
|
||||||
auto [new_wrong, new_green, new_yellow] = prompt();
|
auto [new_wrong, new_green, new_yellow] = prompt();
|
||||||
wrong.append(new_wrong);
|
wrong.append(new_wrong);
|
||||||
|
@ -42,4 +40,4 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue