From 7d213afd37ff90bf1f6ca6deba5533f3f7fc51ff Mon Sep 17 00:00:00 2001 From: Shawn Xu Date: Sun, 24 Aug 2025 15:03:34 -0700 Subject: [PATCH] Non-functional simplifications closes https://github.com/official-stockfish/Stockfish/pull/6267 No functional change Co-authored-by: Daniel Monroe --- src/search.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 41f650e79..e7c5e6ac1 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -929,8 +929,6 @@ Value Search::Worker::search( assert(pos.capture_stage(move)); - movedPiece = pos.moved_piece(move); - do_move(pos, move, st, ss); // Perform a preliminary qsearch to verify that the move holds @@ -1079,9 +1077,8 @@ moves_loop: // When in check, search starts here lmrDepth += history / 3220; - Value baseFutility = (bestMove ? 47 : 218); - Value futilityValue = - ss->staticEval + baseFutility + 134 * lmrDepth + 90 * (ss->staticEval > alpha); + Value futilityValue = ss->staticEval + 47 + 171 * !bestMove + 134 * lmrDepth + + 90 * (ss->staticEval > alpha); // Futility pruning: parent node // (*Scaler): Generally, more frequent futility pruning @@ -1353,7 +1350,7 @@ moves_loop: // When in check, search starts here if (value >= beta) { - // (* Scaler) Especially if they make cutoffCnt increment more often. + // (*Scaler) Especially if they make cutoffCnt increment more often. ss->cutoffCnt += (extension < 2) || PvNode; assert(value >= beta); // Fail high break;