Merge pull request #44 from rektdie/lmr_no_check
allow lmr in checks | bench 2795598
This commit was merged in pull request #44.
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -253,7 +253,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
|
||||
// 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 * depth;
|
||||
if (!isPV && ply && !board.InCheck() && currMove.IsQuiet()
|
||||
if (!isPV && ply && currMove.IsQuiet()
|
||||
&& depth <= 5 && staticEval + fpMargin < alpha && results.score > MATE_SCORE) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user