Skip to content

Commit

Permalink
Bench: 24483222
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Aug 28, 2023
1 parent 8629234 commit 23518a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth

Position *pos = &thread->pos;
MovePicker mp;
Move quiets[32];
Move noisys[32];
ss->pv.length = 0;
ss->doubleExtensions = (ss-1)->doubleExtensions;

Expand Down Expand Up @@ -257,7 +259,7 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth

// Give a history bonus to quiet tt moves that causes a cutoff
if (ttScore >= beta && moveIsQuiet(ttMove))
QuietHistoryUpdate(ttMove, Bonus(depth));
UpdateQuietHistory(thread, ss, ttMove, Bonus(depth), depth, quiets, 0);

return ttScore;
}
Expand Down Expand Up @@ -384,8 +386,6 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth

InitNormalMP(&mp, thread, ss, depth, ttMove, ss->killers[0], ss->killers[1]);

Move quiets[32];
Move noisys[32];
Move bestMove = NOMOVE;
int moveCount = 0, quietCount = 0, noisyCount = 0;
int score = -INFINITE;
Expand Down

0 comments on commit 23518a6

Please sign in to comment.