Skip to content

Commit

Permalink
Bench: 29026520
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Dec 31, 2024
1 parent 179c96b commit 549e019
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/evaluate.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,6 @@ INLINE int EvalKings(const Position *pos, EvalInfo *ei, const Color color) {

TraceIncr(PSQT[KING-1][BlackRelativeSquare(color, kingSq)]);

// Open lines from the king
Bitboard SafeLine = RankBB[RelativeRank(color, RANK_1)];
int count = PopCount(~SafeLine & AttackBB(QUEEN, kingSq, colorBB(color) | pieceBB(PAWN)));
eval += KingLineDanger[count];
TraceIncr(KingLineDanger[count]);

// King threatening a pawn
if (AttackBB(KING, kingSq, 0) & colorPieceBB(!color, PAWN)) {
eval += KingAtkPawn;
Expand All @@ -346,7 +340,7 @@ INLINE int EvalKings(const Position *pos, EvalInfo *ei, const Color color) {
Bitboard pawnsInFront = pieceBB(PAWN) & PassedMask[color][kingSq];
Bitboard ourPawns = pawnsInFront & colorBB(color) & ~PawnBBAttackBB(colorPieceBB(!color, PAWN), !color);

count = PopCount(ourPawns);
int count = PopCount(ourPawns);
eval += count * Shelter;
TraceCount(Shelter);

Expand Down

0 comments on commit 549e019

Please sign in to comment.