forked from official-stockfish/Stockfish
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the ShelterStrength[] array
Remove the distinction between the king file and the two neighbours files in the ShelterStrength[] array. Instead we initialize the safety variable in the evaluate_shelter() function with a -10 penalty if our king is on a semi-open file (ie. if our king is on a file without a pawn protection). Also rename shelter_storm() to evaluate_shelter() while there. STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 23153 W: 4795 L: 4677 D: 13681 http://tests.stockfishchess.org/tests/view/5adcb83d0ebc595ec7ff8aa7 LTC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 25728 W: 3934 L: 3821 D: 17973 http://tests.stockfishchess.org/tests/view/5adcdcb60ebc595ec7ff8adb See the commit history in PR#1559 for the proof that the committed version is equivalent to the version in the tests above: official-stockfish#1559 Full credit to @protonspring for the renormalized values of the ShelterStrength[] array used for the simplification. Thanks! Bench: 4703935
- Loading branch information
Showing
2 changed files
with
19 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters