Skip to content

Commit

Permalink
Bench: 24323046
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Dec 29, 2024
1 parent 2a3f84c commit 08bcfd8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,13 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth
if (moveCount > (improving ? depth * depth : -2 + depth * depth / 2))
mp.onlyNoisy = true;

// Futility pruning
if ( !inCheck
&& quiet
&& lmrDepth < 5
&& eval + 200 + 200 * lmrDepth <= alpha)
continue;

// History pruning
if (lmrDepth < 3 && ss->histScore < -1024 * depth)
continue;
Expand Down

0 comments on commit 08bcfd8

Please sign in to comment.