mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-12 00:52:40 +01:00
DroidFish: Fixed problem in stockfish engine that could cause TBs not to
be used if some 6-men TBs are available, the root position contains 6 men, but the root position is not in the TBs.
This commit is contained in:
@@ -271,7 +271,7 @@ void MainThread::search() {
|
||||
TB::RootInTB = Tablebases::root_probe_wdl(rootPos, rootMoves, TB::Score);
|
||||
|
||||
// Only probe during search if winning
|
||||
if (TB::Score <= VALUE_DRAW)
|
||||
if (TB::RootInTB && TB::Score <= VALUE_DRAW)
|
||||
TB::Cardinality = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user