Skip to content

Commit

Permalink
Bench: 23640094
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Dec 31, 2024
1 parent 179c96b commit 2844d4f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/movepicker.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ void InitNoisyMP(MovePicker *mp, Thread *thread, Stack *ss, Move ttMove) {
mp->onlyNoisy = true;
}

void InitProbcutMP(MovePicker *mp, Thread *thread, Stack *ss, int threshold) {
InitNoisyMP(mp, thread, ss, NOMOVE);
void InitProbcutMP(MovePicker *mp, Thread *thread, Stack *ss, Move ttMove, int threshold) {
Position *pos = &thread->pos;
InitNoisyMP(mp, thread, ss, ttMove && SEE(pos, ttMove, threshold) ? ttMove : NOMOVE);
mp->threshold = threshold;
}
2 changes: 1 addition & 1 deletion src/movepicker.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ typedef struct MovePicker {
Move NextMove(MovePicker *mp);
void InitNormalMP(MovePicker *mp, Thread *thread, Stack *ss, Depth depth, Move ttMove, Move killer);
void InitNoisyMP(MovePicker *mp, Thread *thread, Stack *ss, Move ttMove);
void InitProbcutMP(MovePicker *mp, Thread *thread, Stack *ss, int threshold);
void InitProbcutMP(MovePicker *mp, Thread *thread, Stack *ss, Move ttMove, int threshold);
2 changes: 1 addition & 1 deletion src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth
if ( depth >= 5
&& (!ttHit || ttBound == BOUND_LOWER || ttScore >= probCutBeta)) {

InitProbcutMP(&mp, thread, ss, probCutBeta - ss->staticEval);
InitProbcutMP(&mp, thread, ss, ttMove, probCutBeta - ss->staticEval);

Move move;
while ((move = NextMove(&mp))) {
Expand Down

0 comments on commit 2844d4f

Please sign in to comment.