Code: Select all
// Value based pruning
// We illogically ignore reduction condition depth >= 3*ONE_PLY for predicted depth,
// but fixing this made program slightly weaker.
Depth predictedDepth = newDepth - reduction<PvNode>(depth, moveCount);
futilityValue = futilityBase + futility_margin(predictedDepth, moveCount)
+ H.gain(pos.piece_moved(move), to_sq(move));
reduction<PvNode>(depth, moveCount);
should be:
reduction<NonPv>(depth, moveCount);
(It might be cleaner though just to adjust the futility margins so that you don't need to factor in the LMR stuff).
--Jon