]> git.sesse.net Git - stockfish/commit
Slight simplification in scale factor computation
authorStefano80 <stefano.cardanobile@gmail.com>
Wed, 20 Jun 2018 03:24:24 +0000 (05:24 +0200)
committerStéphane Nicolet <cassio@free.fr>
Wed, 20 Jun 2018 03:27:24 +0000 (05:27 +0200)
commit9d219c07e46bd527f4d9ff4d5b273102b59521c3
treefa13ac81470e6754ffb9b78ad926299960eb1906
parenta834bfe8332adcb0dfc1fd280f1f9d8bbce86266
Slight simplification in scale factor computation

[STC](http://tests.stockfishchess.org/tests/view/5b2614000ebc5902b8d17193)
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 17733 W: 3996 L: 3866 D: 9871

[LTC](http://tests.stockfishchess.org/tests/view/5b264d0f0ebc5902b8d17206)
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 55524 W: 9535 L: 9471 D: 36518

Use pawn count scaling also for opposite bishops endings with additional material, with a slope of 2 instead of 7. This simplifies slightly the code.

This PR is a functionally equivalent refactoring of the version which was submitted.

Four versions tried, 2 passed both STC and LTC. I picked the one which seemed more promising at LTC.

Slope 4 passed STC (-0.54 Elo), LTC not attempted
Slope 3 passed STC (+2.51 Elo), LTC (-0.44 Elo)
Slope 2 passed STC (+2.09 Elo), LTC (+0.04 Elo)
Slope 1 passed STC (+0.90 Elo), failed LTC (-3.40 Elo)

Bench: 4761613
src/evaluate.cpp