Skip to content

Commit 4f72809

Browse files
committed
Modified null move depth
1 parent db3ce48 commit 4f72809

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/search.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ int pvSearch(Bitboard &b, ThreadSearch *th, int depth, int alpha, int beta, bool
228228

229229
// Null move pruning
230230
if (!isPv && canNullMove && !isCheck && staticEval >= beta && depth >= 2 && th->nullMoveTree && b.nullMoveable()) {
231-
int R = 3 + depth / 8;
231+
int R = 3 + depth / (7 - improving);
232+
232233
b.make_null_move();
233234
int nullRet = -pvSearch(b, th, depth - R - 1, -beta, -beta + 1, false, ply + 1);
234235
b.undo_null_move();

0 commit comments

Comments
 (0)