From b595f3d51e69330e53b5d7a79a58272324399f55 Mon Sep 17 00:00:00 2001 From: Matuush Date: Fri, 8 Nov 2024 21:47:54 +0100 Subject: [PATCH] Better printing --- main.cpp | 2 ++ solver.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/main.cpp b/main.cpp index 979c6b8..4d41b1f 100644 --- a/main.cpp +++ b/main.cpp @@ -54,6 +54,8 @@ int main(int argc, char* argv[]) { response = validate(sequence, guess); bot.learn(guess, response); + if(learn) + cout << "Guess " << history.size() << " : " << format_guess(guess) << format_response(response); } // Human playing diff --git a/solver.cpp b/solver.cpp index c825f81..40c592a 100644 --- a/solver.cpp +++ b/solver.cpp @@ -59,6 +59,7 @@ void Game::print() { cout << col; cout << std::endl;; } + cout << std::endl; } // Learning functions