]> git.sesse.net Git - stockfish/commit
Simplify some kingring penalties expressions
authorRocky640 <Rocky640@users.noreply.github.com>
Sat, 11 Nov 2017 12:37:29 +0000 (07:37 -0500)
committerMarco Costalba <mcostalba@users.noreply.github.com>
Sat, 11 Nov 2017 12:37:29 +0000 (13:37 +0100)
commit53239d7d3df44208a915fce84a5745101d3a2ea6
tree497a8d9f80568709365226e447bfe8171134d444
parent3f44f5303bb0f3c9c02385ea25f32c14dedfd09b
Simplify some kingring penalties expressions

The new "weak" expression helps simplify the safe check calculations for rooks or minors, (but the end result for all the safe checks is the exactly the same as in current master)

The only functional change is for the "outer king ring" (for example, squares f3 g3 h3 when white king is on g1). In current master, there was a 191 penalty if any of these was not defended at all.
With this pr, there is this 191 penalty if any of these is not defended at all or is only defended by a white queen.

Tested as a simplification
STC
http://tests.stockfishchess.org/tests/view/59fb03d80ebc590ccbb89fee
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 66167 W: 12015 L: 11971 D: 42181
(against master (Update Copyright year inMakefile))

LTC
http://tests.stockfishchess.org/tests/view/5a0106ae0ebc590ccbb8a55f
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 15790 W: 2095 L: 1968 D: 11727
(against master (Handle BxN trade as good capture when history scor))

same as #1296 but rebased on latest master
bench: 5109559
src/evaluate.cpp