All words in words.txt is not printed anymore

This commit is contained in:
dDogge 2024-12-14 14:38:01 +01:00
parent 17944c4d42
commit bf53770297

View file

@ -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);