From 3854194a154ae7e8b196b2eab824ea92815d9165 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Mon, 15 May 2017 11:26:17 +0200 Subject: [PATCH] Apply delayed-loss bonus to analogy When we stand pat on an analogy, which usually represents the score of a deeper search, this could be smaller than the current evaluation, and thus deserve a delayed-loss bonus. --- dropper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dropper.c b/dropper.c index ca7d65a..c05fd91 100644 --- a/dropper.c +++ b/dropper.c @@ -1199,7 +1199,7 @@ if(hashMove && board[hashMove>>8&255] == 0) {char s[100];sprintf(s,"bad hash mov if(depth <= 0) { // QS if(ff->checker != CK_NONE && ff->tpGain > 0) anaEval = 50-INF; // forbid stand pat if horizon check tossed material if(anaEval > alpha) { - if(anaEval >= beta) { ff->depth = 1; moveSP = oldSP; return anaEval; } // stand-pat cutoff + if(anaEval >= beta) { ff->depth = 1; moveSP = oldSP; return anaEval + (anaEval < curEval); } // stand-pat cutoff alpha = startScore = anaEval; maxDepth = 0; // we will not fail low, so no extra iterations } if(maxDepth <= 0) { -- 1.7.0.4