]> git.sesse.net Git - stockfish/commitdiff
Simplify a condition
authorcandirufish <38038147+candirufish@users.noreply.github.com>
Sat, 21 May 2022 02:20:09 +0000 (04:20 +0200)
committerStéphane Nicolet <cassio@free.fr>
Sat, 21 May 2022 10:42:33 +0000 (12:42 +0200)
Principal variation depth late move reduction extension simplification.

stc:
https://tests.stockfishchess.org/tests/view/6285a1d19d18a78568e7fa24
LLR: 2.94 (-2.94,2.94) <-2.25,0.25>
Total: 428536 W: 113433 L: 113851 D: 201252
Ptnml(0-2): 1671, 48606, 114090, 48272, 1629

ltc:
https://tests.stockfishchess.org/tests/view/62871d20375cdc5de8cf5db3
LLR: 2.95 (-2.94,2.94) <-2.25,0.25>
Total: 56792 W: 15123 L: 15011 D: 26658
Ptnml(0-2): 42, 5681, 16825, 5819, 29

closes https://github.com/official-stockfish/Stockfish/pull/4028

bench: 6501437

src/search.cpp

index 4a41a8b0b09e275284424c37bed3d8f2edcb69d3..d09ced9a670937dc44ffd4a9422950d06d6a426a 100644 (file)
@@ -1197,7 +1197,7 @@ moves_loop: // When in check, search starts here
           // deeper than the first move (this may lead to hidden double extensions).
           int deeper =   r >= -1                   ? 0
                        : moveCount <= 4            ? 2
-                       : PvNode && depth > 4       ? 1
+                       : PvNode                    ? 1
                        : cutNode && moveCount <= 8 ? 1
                        :                             0;