]> git.sesse.net Git - stockfish/commit - src/position.cpp
Simplification of SEE verification logic
authorGuenther Demetz <guenther.demetz@wuerth-phoenix.com>
Mon, 17 Apr 2023 09:38:26 +0000 (11:38 +0200)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sat, 22 Apr 2023 08:47:51 +0000 (10:47 +0200)
commit7b9b793fd544aa7a599b113a40533cde16de640b
treeb58bfdb8737edd1a93519e53b8aa89b559433686
parentc90dd38903206ede56fa73c15d7d2b366d56ebdb
Simplification of SEE verification logic

Use same logic for all handled pieces.
Don't prune the move if opponent King, Queen, Rook gets a discovered
attack while or after the exchanges.

remove an obsolete comment in position.cpp

Passed STC non regression:
https://tests.stockfishchess.org/tests/view/6437907594daa91835c290d0
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 107432 W: 28359 L: 28221 D: 50852
Ptnml(0-2): 298, 11724, 29524, 11882, 288

Passed LTC non-regression:
https://tests.stockfishchess.org/tests/view/6438ed2ebd1a5470263c51e8
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 236288 W: 63656 L: 63656 D: 108976
Ptnml(0-2): 99, 22960, 72011, 22990, 84

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

bench: 3741125
src/position.cpp
src/search.cpp