Skip to content

Commit

Permalink
Return hash scores on PV nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
petur committed Nov 24, 2024
1 parent 4a1af5e commit 6da0d4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions seawall.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3623,6 +3623,8 @@ std::pair<int, Move> Search::search(bool pv, int ply, int depth, int alpha, int
return {beta, he.best_move};
if (hv <= alpha && (he.flags & UPPER) && hv > -SCORE_MATE + ply)
return {alpha, he.best_move};
if (depth <= 3 && depth < he.depth && (he.flags & (LOWER | UPPER)) == (LOWER | UPPER) && hv > -SCORE_MATE + ply && hv < SCORE_MATE - ply)
return {hv, he.best_move};
}
Move prev_best = he.best_move;

Expand Down

0 comments on commit 6da0d4c

Please sign in to comment.