From 1e91a70537dd06c574fbeeb6fe06c2e98eb13dee Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Fri, 4 Mar 2016 20:20:27 +0100 Subject: [PATCH] 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. --- DroidFish/jni/stockfish/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DroidFish/jni/stockfish/search.cpp b/DroidFish/jni/stockfish/search.cpp index 4738b27..a593bde 100644 --- a/DroidFish/jni/stockfish/search.cpp +++ b/DroidFish/jni/stockfish/search.cpp @@ -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; }