Remove spurious setting of alpha
authorH.G.Muller <hgm@hgm-xboard.(none)>
Sat, 17 Feb 2018 18:29:29 +0000 (19:29 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sat, 17 Feb 2018 18:29:29 +0000 (19:29 +0100)
Alpha is reset at the end of the iteration, and setting it to startAlpha
at the beginning destroys the stand-pat contribution in QS.

dropper.c

index b46c031..0535836 100644 (file)
--- a/dropper.c
+++ b/dropper.c
@@ -1263,7 +1263,6 @@ Search (int stm, int alpha, int beta, StackFrame *ff, int depth, int reduction,
        int curMove, highDepth;
        iterDepth++;
        highDepth = (iterDepth > depth ? iterDepth : depth) - 1; // reply depth for high-failing moves
-       alpha = startAlpha;
        pvPtr = pvStart; *pvPtr++ = 0; // empty PV
        bestScore = upperScore = startScore; bestNr = 0; // kludge: points to 0 entry in moveStack
        resultDepth = MAXPLY;