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,11 +143,7 @@ public:
|
||||||
return something_to_learn;
|
return something_to_learn;
|
||||||
}
|
}
|
||||||
void learn(vector<int> p_guess, vector<int> p_response) {
|
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
|
// 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
|
// Repeat multiple times, if new information turned out
|
||||||
|
|
Loading…
Reference in a new issue