WAR: 小概率发生重新开始一局后 thread 的 us 还是 WHITE 导致进入死循环

尝试在 go() 中每次开始新局之前再给 us 赋值一次 BLACK。
This commit is contained in:
Calcitem 2020-10-25 11:19:34 +08:00
parent 51e0d4ee91
commit 19e6621e8f
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ void go(Position *pos)
}
pos->set(StartFEN, Threads.main());
Threads.main()->us = BLACK; // WAR
#else
return;
#endif