remove non-functional else

since we break out of the loop in the other branch

closes https://github.com/official-stockfish/Stockfish/pull/6116

no functional change
This commit is contained in:
Shawn Xu
2025-05-31 18:24:19 -07:00
committed by Joost VandeVondele
parent 9ac756695e
commit 5337edfdb6

View File

@@ -1380,15 +1380,13 @@ moves_loop: // When in check, search starts here
assert(value >= beta); // Fail high assert(value >= beta); // Fail high
break; break;
} }
else
{
// Reduce other moves if we have found at least one score improvement
if (depth > 2 && depth < 16 && !is_decisive(value))
depth -= 2;
assert(depth > 0); // Reduce other moves if we have found at least one score improvement
alpha = value; // Update alpha! Always alpha < beta if (depth > 2 && depth < 16 && !is_decisive(value))
} depth -= 2;
assert(depth > 0);
alpha = value; // Update alpha! Always alpha < beta
} }
} }