mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-06 10:53:50 +08:00
Squash out post-lmr bonus variable
Squash out bonus variable for post-lmr now that the bonus is constant. closes https://github.com/official-stockfish/Stockfish/pull/5953 No functional change
This commit is contained in:
@@ -1271,8 +1271,7 @@ moves_loop: // When in check, search starts here
|
||||
value = -search<NonPV>(pos, ss + 1, -(alpha + 1), -alpha, newDepth, !cutNode);
|
||||
|
||||
// Post LMR continuation history updates
|
||||
int bonus = 1600;
|
||||
update_continuation_histories(ss, movedPiece, move.to_sq(), bonus);
|
||||
update_continuation_histories(ss, movedPiece, move.to_sq(), 1600);
|
||||
}
|
||||
else if (value > alpha && value < bestValue + 9)
|
||||
newDepth--;
|
||||
|
||||
Reference in New Issue
Block a user