]> git.sesse.net Git - stockfish/commit
Use a fraction of king danger in endgame score
authorsnicolet <cassio@free.fr>
Thu, 18 May 2017 01:19:47 +0000 (18:19 -0700)
committerJoona Kiiski <joona@zoox.com>
Thu, 18 May 2017 01:19:47 +0000 (18:19 -0700)
commitcf893bcded1ae2d0cdf95caa7a41a020fe450cbd
tree3e8b5a30d60919a50863d62811c5e0bc59dcdea9
parent732aa34e3dec39de9c80a07f6ecba7cb0569b95e
Use a fraction of king danger in endgame score

When SF has an attack on the opponent king in one flank, the huge
midgame -> endgame gradient of the tapered eval prevents us to properly
evaluate neutral exchanges on the other flank as the current king
danger score is a pure midgame term. This may affect SF's ability to
switch to defense in some positions. We add a small contribution
of the king danger to the endgame score to limit this
effect.

Again suggested in the following forum thread:
https://groups.google.com/forum/?fromgroups=#!topic/fishcooking/xrUCQ7b0ObE

Passed STC:
LLR: 2.96 (-2.94,2.94) [0.00,5.00]
Total: 12719 W: 2371 L: 2192 D: 8156
http://tests.stockfishchess.org/tests/view/5919761a0ebc59035df3468f

And LTC:
LLR: 2.95 (-2.94,2.94) [0.00,5.00]
Total: 31293 W: 4194 L: 3974 D: 23125
http://tests.stockfishchess.org/tests/view/591980450ebc59035df34695

Bench: 5961548

Closes #1118
src/evaluate.cpp