From bf537702978f0e1bfbba62cf5513c7406c11a58a Mon Sep 17 00:00:00 2001 From: dDogge Date: Sat, 14 Dec 2024 14:38:01 +0100 Subject: [PATCH] All words in words.txt is not printed anymore --- main.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/main.cc b/main.cc index 8db34be..d3bdbd9 100644 --- a/main.cc +++ b/main.cc @@ -15,15 +15,13 @@ int main(int argc, char *argv[]) { } auto candidates = read_candidates(file); + std::cout << "File (" << argv[1] << ") loaded. " << candidates.size() << " candidates available.\n"; + std::string wrong; letters_and_indices green, yellow; while (!candidates.empty()) { - std::cout << "Remaining candidates: \n"; - for (const auto &word : candidates) { - std::cout << word << " "; - } - std::cout << "\n\n"; + std::cout << "Remaining candidates: " << candidates.size() << "\n\n"; auto [new_wrong, new_green, new_yellow] = prompt(); wrong.append(new_wrong); @@ -42,4 +40,4 @@ int main(int argc, char *argv[]) { } return 0; -} \ No newline at end of file +}