handling go movetime
This commit is contained in:
1 parent
baa66c74c1
commit
410d37be99
1 file changed
+5
@@ -152,6 +152,11 @@ void ParseGo(Board &board, std::string &command) {
|
||||
params.winc = ReadParam("winc", command);
|
||||
params.binc = ReadParam("binc", command);
|
||||
params.movesToGo = ReadParam("movestogo", command);
|
||||
|
||||
if (command.find("movetime") != std::string::npos) {
|
||||
params.wtime = ReadParam("movetime", command);
|
||||
params.btime = ReadParam("movetime", command);
|
||||
}
|
||||
|
||||
auto worker = std::thread(SearchPosition, std::ref(board), params);
|
||||
worker.detach();
|
||||
|
||||
Reference in new issue
Block a user