WAR: 小概率发生重新开始一局后 thread 的 us 还是 WHITE 导致进入死循环
尝试在 go() 中每次开始新局之前再给 us 赋值一次 BLACK。
This commit is contained in:
parent
51e0d4ee91
commit
19e6621e8f
|
@ -116,6 +116,7 @@ void go(Position *pos)
|
|||
}
|
||||
|
||||
pos->set(StartFEN, Threads.main());
|
||||
Threads.main()->us = BLACK; // WAR
|
||||
#else
|
||||
return;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue