Remove the position parameter from learn.

This commit is contained in:
Tomasz Sobczyk
2020-10-24 22:58:09 +02:00
committed by nodchip
parent a8066cd4a9
commit c229929d26
3 changed files with 3 additions and 3 deletions

View File

@@ -951,7 +951,7 @@ namespace Learner
}
// Learning from the generated game record
void learn(Position&, istringstream& is)
void learn(istringstream& is)
{
LearnerThink::Params params;

View File

@@ -67,7 +67,7 @@ namespace Learner
double calc_grad(Value shallow, const PackedSfenValue& psv);
// Learning from the generated game record
void learn(Position& pos, std::istringstream& is);
void learn(std::istringstream& is);
}
#endif // ifndef _LEARN_H_

View File

@@ -339,7 +339,7 @@ void UCI::loop(int argc, char* argv[]) {
else if (token == "compiler") sync_cout << compiler_info() << sync_endl;
else if (token == "gensfen") Learner::gensfen(is);
else if (token == "learn") Learner::learn(pos, is);
else if (token == "learn") Learner::learn(is);
else if (token == "convert") Learner::convert(is);
else if (token == "convert_bin") Learner::convert_bin(is);
else if (token == "convert_plain") Learner::convert_plain(is);