mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
Introduce evaluate_pawn_storm() to unify redundant code
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+7
-2
@@ -78,14 +78,19 @@ private:
|
||||
|
||||
class PawnInfoTable {
|
||||
|
||||
enum SideType { KingSide, QueenSide };
|
||||
|
||||
public:
|
||||
PawnInfoTable(unsigned numOfEntries);
|
||||
~PawnInfoTable();
|
||||
PawnInfo* get_pawn_info(const Position& pos);
|
||||
PawnInfo* get_pawn_info(const Position& pos) const;
|
||||
|
||||
private:
|
||||
template<Color Us>
|
||||
Score evaluate_pawns(const Position& pos, Bitboard ourPawns, Bitboard theirPawns, PawnInfo* pi);
|
||||
Score evaluate_pawns(const Position& pos, Bitboard ourPawns, Bitboard theirPawns, PawnInfo* pi) const;
|
||||
|
||||
template<Color Us, SideType Side>
|
||||
int evaluate_pawn_storm(Square s, Rank r, File f, Bitboard theirPawns) const;
|
||||
|
||||
unsigned size;
|
||||
PawnInfo* entries;
|
||||
|
||||
Reference in New Issue
Block a user