mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Small cleanups
closes https://github.com/official-stockfish/Stockfish/pull/2567 No functional change.
This commit is contained in:
@@ -1193,10 +1193,16 @@ moves_loop: // When in check, search starts from here
|
||||
|
||||
value = -search<NonPV>(pos, ss+1, -(alpha+1), -alpha, d, true);
|
||||
|
||||
doFullDepthSearch = (value > alpha && d != newDepth), didLMR = true;
|
||||
doFullDepthSearch = value > alpha && d != newDepth;
|
||||
|
||||
didLMR = true;
|
||||
}
|
||||
else
|
||||
doFullDepthSearch = !PvNode || moveCount > 1, didLMR = false;
|
||||
{
|
||||
doFullDepthSearch = !PvNode || moveCount > 1;
|
||||
|
||||
didLMR = false;
|
||||
}
|
||||
|
||||
// Step 17. Full depth search when LMR is skipped or fails high
|
||||
if (doFullDepthSearch)
|
||||
|
||||
Reference in New Issue
Block a user