From f424766b9caecfecb4eab932835d90441d17c4ae Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Sun, 18 Feb 2018 11:13:55 +0100 Subject: [PATCH] Suppress initiative bonus after spite check The bonus for a vulnerable opponent King should be added to the static eval, but not to the 'undetermined mate score' replacing a stand pat after a spite check (i.e. a check tossing material) + evasion made us reach the horizon. --- dropper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dropper.c b/dropper.c index 0535836..8261873 100644 --- a/dropper.c +++ b/dropper.c @@ -1246,7 +1246,7 @@ Search (int stm, int alpha, int beta, StackFrame *ff, int depth, int reduction, } } - if(depth <= 0) { + if(depth <= 0 && anaEval == curEval) { int bonus = (m.safety + 3*m.hole)*(10 + m.safety + m.hole + promoGain[stm+30] /*- 0*promoGain[COLOR-stm+30]*/) + 15*m.cBonus; bonus += (m.escape < 2 ? 200 - m.escape*100 : 0); if(bonus > 900) bonus = 900; // S4 -- 1.7.0.4