From 79ee9b6e26382681c15a11079c2532b32a88571c Mon Sep 17 00:00:00 2001 From: Maurizio Monge Date: Wed, 10 Oct 2007 19:30:02 +0200 Subject: [PATCH] Fixed quiescence-futility pruning. Code changes because of tests. --- search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search.cpp b/search.cpp index 0dea3f8..d936abc 100644 --- a/search.cpp +++ b/search.cpp @@ -419,7 +419,7 @@ SearchRoot::moves_quiescence_heuristic(Move *mv, int num_mv, const Move& best_mv continue; } - if( x>0 && ((orig_depth>-2*PLY) ? true : x*100+static_eval+200>alpha) ) + if( x>0 && ((orig_depth>-2*PLY || static_eval==-INF) ? true : x*100+static_eval+200>alpha) ) { mv[i].val = 10000+x; continue; @@ -636,7 +636,7 @@ int16_t SearchRoot::search(int ply, int base_depth, bool pv, int16_t orig_alpha, return val; #if NULL_SOLIDITY_MARGIN > 1 - if(val > beta - NULL_SOLIDITY_MARGIN) + if(depth <= 3*PLY && val > beta - NULL_SOLIDITY_MARGIN) depth -= PLY; #endif -- 2.11.4.GIT