added go nodes | bench 1857933

This commit is contained in:
rektdie committed 2025-04-01 05:41:21 +02:00
1 parent 250347dbab
commit a6459dda00
4 files changed
+45 -18

No files matched your search

+9 -3
View File
@@ -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) {