]> git.sesse.net Git - stockfish/commit
More precise checks evaluation in king danger
authorVizvezdenec <Vizvezdenec@gmail.com>
Fri, 1 Feb 2019 06:21:23 +0000 (09:21 +0300)
committerStéphane Nicolet <stephanenicoletsuriphone@gmail.com>
Fri, 1 Feb 2019 11:43:33 +0000 (12:43 +0100)
commit3f7ec977cdae7a59c58342f3752bccb293d4e206
treecbe2bddfccf4b61280cd67984905d3b7e69121d2
parentd1fd1a96bc62346b727dd3797df429f7e627f5ef
More precise checks evaluation in king danger

Remove overlapping safe checks from kingdanger:
- rook and queen checks from the same square: rook check is preferred
- bishop and queen checks form the same square: queen check is preferred

Increase bishop and rook check values as a compensation.

STC
LLR: 2.95 (-2.94,2.94) [0.50,4.50]
Total: 27480 W: 6111 L: 5813 D: 15556
http://tests.stockfishchess.org/tests/view/5c521d050ebc593af5d4e66a

LTC
LLR: 2.95 (-2.94,2.94) [0.00,3.50]
Total: 78500 W: 13145 L: 12752 D: 52603
http://tests.stockfishchess.org/tests/view/5c52b9460ebc592fc7baecc5

Closes https://github.com/official-stockfish/Stockfish/pull/1983

------------------------------------------

I have quite a few ideas of how to improve this patch.

- actually rethinking it now it will maybe be useful to discount
  queen/bishop checks if there is only one square that they can
  give check from and it's "occupied" by more valuable check. Right
  now count of this squares does not really matter.

- maybe some small extra bonus can be given for overlapping checks.

- some ideas about using popcount() on safechecks can be retried.

- tune this safecheck values since they were more or less randomly handcrafted in this patch.

Bench: 3216489
src/evaluate.cpp