Skip to content

Commit

Permalink
Bench: 2459953
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoshie2000 committed Mar 2, 2025
1 parent d664105 commit 2e73da6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ Eval Thread::qsearch(Board* board, SearchStack* stack, Eval alpha, Eval beta) {

// Stand pat
if (bestValue >= beta) {
if (std::abs(bestValue) < EVAL_TBWIN_IN_MAX_PLY && std::abs(beta) < EVAL_TBWIN_IN_MAX_PLY)
bestValue = (bestValue + beta) / 2;
ttEntry->update(board->stack->hash, MOVE_NONE, ttEntry->depth, unadjustedEval, EVAL_NONE, ttPv, TT_NOBOUND);
return bestValue;
}
Expand Down

0 comments on commit 2e73da6

Please sign in to comment.