removed unnecessary condition | bench 4559188
This commit is contained in:
1 parent
2e1f84bda5
commit
6ccd416840
1 file changed
-1
@@ -660,7 +660,6 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
|||||||
if (!ctx->excluded) {
|
if (!ctx->excluded) {
|
||||||
|
|
||||||
if (!board.InCheck() && (results.bestMove.IsQuiet())
|
if (!board.InCheck() && (results.bestMove.IsQuiet())
|
||||||
&& !(nodeType == CutNode && results.score <= staticEval)
|
|
||||||
&& !(nodeType == AllNode && results.score >= staticEval)) {
|
&& !(nodeType == AllNode && results.score >= staticEval)) {
|
||||||
|
|
||||||
int corrHistBonus = std::clamp(results.score - staticEval, -CORRHIST_LIMIT, CORRHIST_LIMIT);
|
int corrHistBonus = std::clamp(results.score - staticEval, -CORRHIST_LIMIT, CORRHIST_LIMIT);
|
||||||
|
|||||||
Reference in new issue
Block a user