From: H.G.Muller Date: Tue, 7 Feb 2017 21:39:47 +0000 (+0100) Subject: Suppress hash cutoffs in root X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=1d8d788fd97aee3961bf3174cb458f413aa70882;p=crazywa.git Suppress hash cutoffs in root --- diff --git a/dropper.c b/dropper.c index 9081a17..ca80815 100644 --- a/dropper.c +++ b/dropper.c @@ -1144,7 +1144,7 @@ if(PATH)printf("%d:%d Hash Probe %016llx\n",ply,depth,f.hashKey); if(PATH)printf(" Hit, d=%d, checker = %x\n",entry->depth,f.checker); if((entry->flags & H_LOWER || entry->score <= alpha) && (entry->flags & H_UPPER || entry->score >= beta)) { // compatible bound d += (score >= beta & entry->depth >= LMR)*reduction; // fail highs need to satisfy reduced depth only, so we fake higher depth than actually found - if(score > alpha && d >= depth || d >= maxDepth) { // sufficient depth + if((score > alpha && d >= depth || d >= maxDepth) && ply) { // sufficient depth ff->depth = d + 1; return entry->score; // depth was sufficient, take hash cutoff } }