From 3f64d13268476f7cb590e0e71734976fade12871 Mon Sep 17 00:00:00 2001 From: dDogge Date: Sat, 14 Dec 2024 14:44:34 +0100 Subject: [PATCH] Candidates after input are now shown --- main.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.cc b/main.cc index d3bdbd9..ba607b9 100644 --- a/main.cc +++ b/main.cc @@ -21,8 +21,6 @@ int main(int argc, char *argv[]) { letters_and_indices green, yellow; while (!candidates.empty()) { - std::cout << "Remaining candidates: " << candidates.size() << "\n\n"; - auto [new_wrong, new_green, new_yellow] = prompt(); wrong.append(new_wrong); green.insert(new_green.begin(), new_green.end()); @@ -30,6 +28,12 @@ int main(int argc, char *argv[]) { do_filter(candidates, wrong, green, yellow); + std::cout << "Remaining candidates: " << candidates.size() << "\n"; + for (const auto &word : candidates) { + std::cout << word << " "; + } + std::cout << "\n\n"; + if (candidates.size() <= 1) break; }