From: Jean-Francois Romang Date: Thu, 25 Oct 2012 06:54:05 +0000 (+0000) Subject: Enable true 3 fold detection in search X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=5436d98fc54600ead011304274250e8b5de35c6a;ds=inline Enable true 3 fold detection in search --- diff --git a/src/search.cpp b/src/search.cpp index 54523631..785cf0ef 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -524,7 +524,7 @@ namespace { if (!RootNode) { // Step 2. Check for aborted search and immediate draw - if (Signals.stop || pos.is_draw() || ss->ply > MAX_PLY) + if (Signals.stop || (PvNode?pos.is_draw():pos.is_draw()) || 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