Refine improving-logic
authorGuenther Demetz <guenther.demetz@wuerth-phoenix.com>
Tue, 10 Dec 2019 07:07:34 +0000 (08:07 +0100)
committerGuenther Demetz <guenther.demetz@wuerth-phoenix.com>
Tue, 10 Dec 2019 07:07:34 +0000 (08:07 +0100)
commitb6482472a03833287dc21bdaa783f156978ac63e
tree377bbeb362a25776b43e190f55b4c942628d60aa
parent443787b0d1dceb6186e217ea2b2224e76806ea15
Refine improving-logic

Don't rely on the assumption that we are improving after surviving a
check. Instead, compare with the static eval of 2 moves before.

STC
https://tests.stockfishchess.org/tests/view/5dedfd7f3cff9a249bb9e44d
LLR: 2.95 (-2.94,2.94) [-1.50,4.50]
Total: 38859 W: 8621 L: 8397 D: 21841

LTC
https://tests.stockfishchess.org/tests/view/5dee1b5a3cff9a249bb9e465
LLR: 2.95 (-2.94,2.94) [0.00,3.50]
Total: 51130 W: 8308 L: 7996 D: 34826

Bench: 5371271
src/search.cpp