Current guess can be appended to history right away and info will be extracted there

This commit is contained in:
Matúš Púll 2024-11-04 18:28:20 +01:00
parent 53195b5c8b
commit 29ef860752

View file

@ -143,12 +143,8 @@ public:
return something_to_learn;
}
void learn(vector<int> p_guess, vector<int> 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)