Current guess can be appended to history right away and info will be extracted there
This commit is contained in:
parent
53195b5c8b
commit
29ef860752
1 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue