Skip to content

Commit

Permalink
Fix (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viren6 authored and Disservin committed Apr 9, 2024
1 parent 8417844 commit 47b13cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ Value Search::Worker::search(
{
// In general we want to cap the LMR depth search at newDepth, but when
// reduction is negative, we allow this move a limited search extension
// beyond the first move depth. This may lead to hidden multiple extensions.
// beyond the first move depth.
// To prevent problems when the max value is less than the min value,
// std::clamp has been replaced by a more robust implementation.
Depth d = std::max(1, std::min(newDepth - r, newDepth + 1));
Expand Down

0 comments on commit 47b13cc

Please sign in to comment.