X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.h;h=86708488cb276f6c13ce40d768d7bda7991d3485;hp=76a98566b7570ba1046a003279fb5947de07ccda;hb=85a7456bd7e8a1a01cdbfa8f4b6fb563d15a37c6;hpb=2a2353aac65d6f7263081dc373c768c8717602db diff --git a/src/pawns.h b/src/pawns.h index 76a98566..86708488 100644 --- a/src/pawns.h +++ b/src/pawns.h @@ -47,8 +47,6 @@ class PawnInfo { public: Score pawns_value() const; - Value kingside_storm_value(Color c) const; - Value queenside_storm_value(Color c) const; Bitboard pawn_attacks(Color c) const; Bitboard passed_pawns(Color c) const; int file_is_half_open(Color c, File f) const; @@ -67,8 +65,6 @@ private: Bitboard pawnAttacks[2]; Square kingSquares[2]; Score value; - int ksStormValue[2]; - int qsStormValue[2]; int halfOpenFiles[2]; Score kingShelters[2]; }; @@ -82,6 +78,9 @@ class PawnInfoTable { enum SideType { KingSide, QueenSide }; + PawnInfoTable(const PawnInfoTable&); + PawnInfoTable& operator=(const PawnInfoTable&); + public: PawnInfoTable(); ~PawnInfoTable(); @@ -92,9 +91,6 @@ private: template Score evaluate_pawns(const Position& pos, Bitboard ourPawns, Bitboard theirPawns, PawnInfo* pi) const; - template - int evaluate_pawn_storm(Square s, Rank r, File f, Bitboard theirPawns) const; - PawnInfo* entries; }; @@ -118,14 +114,6 @@ inline Bitboard PawnInfo::pawn_attacks(Color c) const { return pawnAttacks[c]; } -inline Value PawnInfo::kingside_storm_value(Color c) const { - return Value(ksStormValue[c]); -} - -inline Value PawnInfo::queenside_storm_value(Color c) const { - return Value(qsStormValue[c]); -} - inline Bitboard PawnInfo::passed_pawns(Color c) const { return passedPawns[c]; }