Merge pull request #20 from rektdie/nmp_tweak

nmp stand pat | bench 1143648
This commit was merged in pull request #20.
This commit is contained in:
rektdie authored and GitHub committed 2025-03-16 13:35:47 +01:00
commit 3ff1df03d7
1 file changed
+1 -1
+1 -1
View File
@@ -165,7 +165,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta) {
}
// Null Move Pruning
if (!doingNullMove) {
if (!doingNullMove && staticEval >= beta) {
if (depth >= 3 && !board.InPossibleZug(board.sideToMove)) {
Board copy = board;
copy.MakeMove(Move());