Improve signature of evaluate_shelter()

Remove one parameter in function evaluate_shelter(), making all
comparisons for castled/uncastled shelter locally in do_king_safety().
Also introduce BlockedStorm penalty.

Passed non-regression test at STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 65864 W: 14630 L: 14596 D: 36638
http://tests.stockfishchess.org/tests/view/5d5fc80c0ebc5939d09f0acc

No functional change
This commit is contained in:
protonspring
2019-08-24 08:16:20 +02:00
committed by Stéphane Nicolet
parent 3984b8f8f0
commit d799529b48
2 changed files with 22 additions and 17 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ struct Entry {
Score do_king_safety(const Position& pos);
template<Color Us>
void evaluate_shelter(const Position& pos, Square ksq, Score& shelter);
Score evaluate_shelter(const Position& pos, Square ksq);
Key key;
Score scores[COLOR_NB];