fixing unknown variable
parent
c98814291a
commit
e962aa8851
|
@ -69,9 +69,9 @@ namespace {
|
|||
// Reductions lookup table, initialized at startup
|
||||
int Reductions[MAX_MOVES]; // [depth or moveNumber]
|
||||
|
||||
Depth reduction(bool i, Depth d, int mn, bool b) {
|
||||
Depth reduction(bool i, Depth d, int mn, bool rangeReduction) {
|
||||
int r = Reductions[d] * Reductions[mn];
|
||||
return (r + 534) / 1024 + (!i && r > 904) + b;
|
||||
return (r + 534) / 1024 + (!i && r > 904) + rangeReduction;
|
||||
}
|
||||
|
||||
constexpr int futility_move_count(bool improving, Depth depth) {
|
||||
|
@ -1042,7 +1042,7 @@ moves_loop: // When in check, search starts here
|
|||
moveCountPruning = moveCount >= futility_move_count(improving, depth);
|
||||
|
||||
// Reduced depth of the next LMR search
|
||||
int lmrDepth = std::max(newDepth - reduction(improving, depth, moveCount, b > 2), 0);
|
||||
int lmrDepth = std::max(newDepth - reduction(improving, depth, moveCount, rangeReduction > 2), 0);
|
||||
|
||||
if ( captureOrPromotion
|
||||
|| givesCheck)
|
||||
|
@ -1177,7 +1177,7 @@ moves_loop: // When in check, search starts here
|
|||
|| !ss->ttPv)
|
||||
&& (!PvNode || ss->ply > 1 || thisThread->id() % 4 != 3))
|
||||
{
|
||||
Depth r = reduction(improving, depth, moveCount, b > 2);
|
||||
Depth r = reduction(improving, depth, moveCount, rangeReduction > 2);
|
||||
|
||||
if (PvNode)
|
||||
r--;
|
||||
|
|
Loading…
Reference in New Issue