]> git.sesse.net Git - stockfish/commit
In movepicker increase priority for moves that evade a capture
authorMichael Chaly <Vizvezdenec@gmail.com>
Mon, 28 Mar 2022 11:15:56 +0000 (14:15 +0300)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Mon, 28 Mar 2022 20:37:09 +0000 (22:37 +0200)
commit08e0f52b77edb929989c68c49e954b9bc5d7d67e
treefe12509ee1c9f149234fc5905009fa2c2c221a3f
parent910cf8b21839eb9f1991934a5436eea112021723
In movepicker increase priority for moves that evade a capture

This idea is a mix of koivisto idea of threat history and heuristic that
was simplified some time ago in LMR - decreasing reduction for moves that evade a capture.
Instead of doing so in LMR this patch does it in movepicker - to do this it
calculates squares that are attacked by different piece types and pieces that are located
on this squares and boosts up weight of moves that make this pieces land on a square that is not under threat.
Boost is greater for pieces with bigger material values.
Special thanks to koivisto and seer authors for explaining me ideas behind threat history.

Passed STC:
https://tests.stockfishchess.org/tests/view/62406e473b32264b9aa1478b
LLR: 2.94 (-2.94,2.94) <0.00,2.50>
Total: 19816 W: 5320 L: 5072 D: 9424
Ptnml(0-2): 86, 2165, 5172, 2385, 100

Passed LTC:
https://tests.stockfishchess.org/tests/view/62407f2e3b32264b9aa149c8
LLR: 2.94 (-2.94,2.94) <0.50,3.00>
Total: 51200 W: 13805 L: 13500 D: 23895
Ptnml(0-2): 44, 5023, 15164, 5322, 47

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

bench 7736491
src/movepick.cpp