Fp #33
+2
-2
@@ -234,8 +234,8 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
|
||||
// Futility pruning
|
||||
// If our static eval is far below alpha, there is only a small chance
|
||||
// that a quiet move will help us so we skip them
|
||||
int fpMargin = 100;
|
||||
if (!isPV && !board.InCheck() && currMove.IsQuiet()
|
||||
int fpMargin = 100 + 50 * depth;
|
||||
if (!isPV && ply && !board.InCheck() && currMove.IsQuiet()
|
||||
&& depth <= 2 && staticEval + fpMargin < alpha) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user