From 55bd27b8f08a151128d7065fa2819aa3e9605299 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 20 Oct 2012 11:02:37 +0200 Subject: [PATCH] Contempt factor: use DrawValue also in case of stealmates MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Spotted by Jörg Oster. No functional change (when contempt factor is not used). --- src/search.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index e3030490..09d272e5 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1023,7 +1023,8 @@ split_point_start: // At split points actual search starts from here // If we are in a singular extension search then return a fail low score. // A split node has at least one move, the one tried before to be splitted. if (!moveCount) - return excludedMove ? alpha : inCheck ? mated_in(ss->ply) : VALUE_DRAW; + return excludedMove ? alpha + : inCheck ? mated_in(ss->ply) : DrawValue[pos.side_to_move()]; // If we have pruned all the moves without searching return a fail-low score if (bestValue == -VALUE_INFINITE) -- 2.39.2