Suppress hash cutoffs in root
authorH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 7 Feb 2017 21:39:47 +0000 (22:39 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 7 Feb 2017 21:39:47 +0000 (22:39 +0100)
dropper.c

index 9081a17..ca80815 100644 (file)
--- 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
            }
        }