prevent fp when move gives direct check | bench 1847720
This commit is contained in:
1 parent
83c9a2c51c
commit
9885596770
3 files changed
+47
-2
No files matched your search
+1
-1
@@ -561,7 +561,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
||||
int margin = fpMargin * (lmrDepth + improving) + historyScore / 32;
|
||||
|
||||
if (!isPV && ply && currMove.IsQuiet()
|
||||
&& lmrDepth <= 5 && staticEval + margin < alpha && notMated) {
|
||||
&& lmrDepth <= 5 && staticEval + margin < alpha && notMated && !board.GivesDirectCheck(currMove)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user