Move public search/qsearch interface from namespace Learner to namespace Search

This commit is contained in:
Tomasz Sobczyk
2020-10-14 19:24:41 +02:00
committed by nodchip
parent 0494adeb2c
commit 14f83ad7b9
5 changed files with 13 additions and 21 deletions
+4 -7
View File
@@ -110,15 +110,12 @@ extern LimitsType Limits;
void init();
void clear();
} // namespace Search
// A pair of reader and evaluation value. Returned by Learner::search(),Learner::qsearch().
using ValueAndPV = std::pair<Value, std::vector<Move>>;
namespace Learner {
ValueAndPV qsearch(Position& pos);
ValueAndPV search(Position& pos, int depth_, size_t multiPV = 1, uint64_t nodesLimit = 0);
// A pair of reader and evaluation value. Returned by Learner::search(),Learner::qsearch().
using ValueAndPV = std::pair<Value, std::vector<Move>>;
ValueAndPV qsearch(Position& pos);
ValueAndPV search(Position& pos, int depth_, size_t multiPV = 1, uint64_t nodesLimit = 0);
}
#endif // #ifndef SEARCH_H_INCLUDED