X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.h;h=f36168c9a7db884cea5b170972978feb1fdf8271;hp=a9c21ffb1ef77a61e1bfce8c4db02fb6bf226aaa;hb=94b3cdd908f68e20a09f67dba40103fd671f5f17;hpb=9afa1d73306cb98e95acec5daf4efd65e592ceff diff --git a/src/pawns.h b/src/pawns.h index a9c21ffb..f36168c9 100644 --- a/src/pawns.h +++ b/src/pawns.h @@ -33,7 +33,7 @@ namespace Pawns { struct Entry { - Score pawns_score() const { return score; } + Score pawn_score(Color c) const { return scores[c]; } Bitboard pawn_attacks(Color c) const { return pawnAttacks[c]; } Bitboard passed_pawns(Color c) const { return passedPawns[c]; } Bitboard pawn_attacks_span(Color c) const { return pawnAttacksSpan[c]; } @@ -45,10 +45,6 @@ struct Entry { return semiopenFiles[c] & (1 << f); } - int semiopen_side(Color c, File f, bool leftSide) const { - return semiopenFiles[c] & (leftSide ? (1 << f) - 1 : ~((1 << (f + 1)) - 1)); - } - int pawns_on_same_color_squares(Color c, Square s) const { return pawnsOnSquares[c][bool(DarkSquares & s)]; } @@ -66,7 +62,7 @@ struct Entry { Value shelter_storm(const Position& pos, Square ksq); Key key; - Score score; + Score scores[COLOR_NB]; Bitboard passedPawns[COLOR_NB]; Bitboard pawnAttacks[COLOR_NB]; Bitboard pawnAttacksSpan[COLOR_NB];