]> git.sesse.net Git - stockfish/commitdiff
Enable true 3 fold detection in search
authorJean-Francois Romang <jeanfrancois.romang@gmail.com>
Thu, 25 Oct 2012 06:54:05 +0000 (06:54 +0000)
committerJean-Francois Romang <jeanfrancois.romang@gmail.com>
Thu, 25 Oct 2012 06:54:05 +0000 (06:54 +0000)
src/search.cpp

index 5452363192cd30cb534d5f859247840b2837339a..785cf0efb8ec7ec055f369ec3566c88f9dd87ccf 100644 (file)
@@ -524,7 +524,7 @@ namespace {
     if (!RootNode)
     {
         // Step 2. Check for aborted search and immediate draw
     if (!RootNode)
     {
         // Step 2. Check for aborted search and immediate draw
-        if (Signals.stop || pos.is_draw<false,true>() || ss->ply > MAX_PLY)
+        if (Signals.stop || (PvNode?pos.is_draw<false,false>():pos.is_draw<false,true>()) || ss->ply > MAX_PLY)
             return DrawValue[pos.side_to_move()];
 
         // Step 3. Mate distance pruning. Even if we mate at the next move our score
             return DrawValue[pos.side_to_move()];
 
         // Step 3. Mate distance pruning. Even if we mate at the next move our score