Skip to content

Commit

Permalink
Revert "Allow ttValue in qsearch"
Browse files Browse the repository at this point in the history
This reverts commit 3f8aa4a.

Since the clamping with probcutbeta, the position can now be found as a mate.
  • Loading branch information
PikaCat-OuO committed Jul 23, 2024
1 parent 54c6960 commit 6b3ecce
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 @@ -1401,7 +1401,7 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta,
to_corrected_static_eval(unadjustedStaticEval, *thisThread, pos);

// ttValue can be used as a better position evaluation (~13 Elo)
if (ttData.value != VALUE_NONE
if (std::abs(ttData.value) < VALUE_MATE_IN_MAX_PLY
&& (ttData.bound & (ttData.value > bestValue ? BOUND_LOWER : BOUND_UPPER)))
bestValue = ttData.value;
}
Expand Down

0 comments on commit 6b3ecce

Please sign in to comment.