From 29ef860752dd7320a68602e403b78bb20855ac86 Mon Sep 17 00:00:00 2001 From: Matuush Date: Mon, 4 Nov 2024 18:28:20 +0100 Subject: [PATCH] Current guess can be appended to history right away and info will be extracted there --- solver.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/solver.hpp b/solver.hpp index bc270d5..3529870 100644 --- a/solver.hpp +++ b/solver.hpp @@ -143,12 +143,8 @@ public: return something_to_learn; } void learn(vector p_guess, vector p_response) { - // Learn something new - bool something_to_learn = extract_info({p_guess, p_response}); - // Write to history - if(something_to_learn) - history.push_back({p_guess, p_response}); + history.push_back({p_guess, p_response}); // Repeat multiple times, if new information turned out for(auto _ : history)