X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fpawns.h;h=2a1dff196ce594a09436e6e3c89efdc3cd08eca9;hb=b0b9bb3462d215f33c9f33323e64dc115746c4e0;hp=f2b4441a5d46259909acf06fa91ecb20d644b524;hpb=8307da0de77c9c7bbf7c56a7d9c8a688ff4dfb4e;p=stockfish diff --git a/src/pawns.h b/src/pawns.h index f2b4441a..2a1dff19 100644 --- a/src/pawns.h +++ b/src/pawns.h @@ -46,11 +46,14 @@ public: int has_open_file_to_right(Color c, File f) const; template - Score king_shelter(const Position& pos, Square ksq); + Score king_safety(const Position& pos, Square ksq); private: template - Score updateShelter(const Position& pos, Square ksq); + Score update_safety(const Position& pos, Square ksq); + + template + Value shelter_storm(const Position& pos, Square ksq); Key key; Bitboard passedPawns[2]; @@ -100,8 +103,8 @@ inline int PawnInfo::has_open_file_to_right(Color c, File f) const { } template -inline Score PawnInfo::king_shelter(const Position& pos, Square ksq) { - return kingSquares[Us] == ksq ? kingShelters[Us] : updateShelter(pos, ksq); +inline Score PawnInfo::king_safety(const Position& pos, Square ksq) { + return kingSquares[Us] == ksq ? kingShelters[Us] : update_safety(pos, ksq); } #endif // !defined(PAWNS_H_INCLUDED)