added go nodes | bench 1857933
This commit is contained in:
1 parent
250347dbab
commit
a6459dda00
4 files changed
+45
-18
No files matched your search
+9
-3
@@ -76,14 +76,20 @@ static void ParseGo(Board &board, std::string &command) {
|
||||
params.winc = ReadParam("winc", command);
|
||||
params.binc = ReadParam("binc", command);
|
||||
params.movesToGo = ReadParam("movestogo", command);
|
||||
params.nodes = ReadParam("nodes", command);
|
||||
|
||||
if (command.find("movetime") != std::string::npos) {
|
||||
params.wtime = ReadParam("movetime", command);
|
||||
params.btime = ReadParam("movetime", command);
|
||||
}
|
||||
|
||||
auto worker = std::thread(SEARCH::SearchPosition<SEARCH::normal>, std::ref(board), params);
|
||||
worker.detach();
|
||||
|
||||
if (params.nodes) {
|
||||
auto worker = std::thread(SEARCH::SearchPosition<SEARCH::nodesMode>, std::ref(board), params);
|
||||
worker.detach();
|
||||
} else {
|
||||
auto worker = std::thread(SEARCH::SearchPosition<SEARCH::normal>, std::ref(board), params);
|
||||
worker.detach();
|
||||
}
|
||||
}
|
||||
|
||||
static void SetOption(std::string &command) {
|
||||
|
||||
Reference in new issue
Block a user