]> git.sesse.net Git - stockfish/commit
Malus during move ordering for putting pieces en prise
authorrn5f107s2 <clemens.lerchl@gmail.com>
Wed, 26 Jul 2023 12:31:16 +0000 (14:31 +0200)
committerStéphane Nicolet <cassio@free.fr>
Fri, 28 Jul 2023 22:56:26 +0000 (00:56 +0200)
commit65ece7d985291cc787d6c804a33f1dd82b75736d
tree463433bab1ae56c872f7a975fd76f5847c3ec236
parentf84eb1f3ef9dc4078368b849f8deb55982882390
Malus during move ordering for putting pieces en prise

The original idea is the reverse of a previous patch [1] which added bonuses
in our move picker to moves escaping threats. In this patch, in addition to
bonuses for evading threats, we apply penalties to moves moving to threatened
squares.

Further tweaks of that basic idea resulted in this specific version which
further increases the penalty of moves moving to squares threatend depending
on the piece threatening it. So for example a queen moving to a square attacked
by a pawn would receive a larger penalty than a queen moving to square attacked
by a rook.

[1]: https://github.com/official-stockfish/Stockfish/commit/08e0f52b77edb929989c68c49e954b9bc5d7d67e

--------

Passed STC:
https://tests.stockfishchess.org/tests/live_elo/64c11269dc56e1650abb935d
LLR: 2.94 (-2.94,2.94) <0.00,2.00>
Total: 95552 W: 24654 L: 24250 D: 46648
Ptnml(0-2): 322, 11098, 24562, 11442, 352

Passed LTC:
https://tests.stockfishchess.org/tests/live_elo/64c2004ddc56e1650abba8b3
LLR: 2.94 (-2.94,2.94) <0.50,2.50>
Total: 190230 W: 48806 L: 48178 D: 93246
Ptnml(0-2): 90, 20439, 53453, 21019, 114

-------

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

Bench: 1350831
src/movepick.cpp