]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Full three fold repetition detection only at root node
[stockfish] / src / search.cpp
index 5452363192cd30cb534d5f859247840b2837339a..9980dcf95b1aeb347986ce6cab2e6ac2000fe00f 100644 (file)
@@ -538,6 +538,10 @@ namespace {
         if (alpha >= beta)
             return alpha;
     }
+       else 
+       {
+               if(pos.is_draw<false,false>()) return DrawValue[pos.side_to_move()];
+       }
 
     // Step 4. Transposition table lookup
     // We don't want the score of a partial search to overwrite a previous full search