mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 13:17:44 +00:00
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:
committed by
Stéphane Nicolet
parent
3984b8f8f0
commit
d799529b48
+1
-1
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user