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.
}
}
- 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