]> git.sesse.net Git - stockfish/commit - src/evaluate.cpp
Use less reduction for escaping moves
authordisservin <45608332+Disservin@users.noreply.github.com>
Sun, 18 Sep 2022 09:16:54 +0000 (11:16 +0200)
committerStéphane Nicolet <cassio@free.fr>
Mon, 3 Oct 2022 09:50:31 +0000 (11:50 +0200)
commitf436bf77ad2eb42228747d9aa58eeb7403e23d49
tree386b43f34d1ea58273fc45c3274b44c7dbf08d32
parent232bf19be43117cdecea054c9a825735f0b47842
Use less reduction for escaping moves

This patch reuses the threatenedPieces variable (which is calculated in movepicker)
to reduce less in the search tree the moves which escape a capture.

passed STC:
LLR: 2.94 (-2.94,2.94) <0.00,2.00>
Total: 314352 W: 84042 L: 83328 D: 146982
Ptnml(0-2): 1105, 35084, 84207, 35552, 1228
https://tests.stockfishchess.org/tests/view/63355f37a004bed9a2e4a17f

passed LTC:
LLR: 2.95 (-2.94,2.94) <0.50,2.50>
Total: 90752 W: 24556 L: 24147 D: 42049
Ptnml(0-2): 59, 8855, 27123, 9296, 43
https://tests.stockfishchess.org/tests/view/63383a7735f43d649ff5fa8b

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

bench: 4114228
src/evaluate.cpp
src/movepick.cpp
src/movepick.h
src/search.cpp
src/thread.cpp
src/uci.cpp