Skip to content

Commit

Permalink
Bench: 26795134
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Feb 16, 2025
1 parent 8f61e65 commit 878cac1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/evaluate.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ INLINE int EvalPiece(const Position *pos, EvalInfo *ei, const Color color, const
Bitboard bishopSquares = (BB(sq) & BlackSquaresBB) ? BlackSquaresBB : ~BlackSquaresBB;
Bitboard badPawns = colorPieceBB(color, PAWN) & bishopSquares;
Bitboard centralFiles = fileCBB | fileDBB | fileEBB | fileFBB;
Bitboard blockedBadPawns = ShiftBB(pieceBB(ALL), down) & colorPieceBB(color, PAWN) & centralFiles;
Bitboard centralRanks = rank3BB | rank4BB | rank5BB | rank6BB;
Bitboard blockedBadPawns = ShiftBB(pieceBB(ALL), down) & colorPieceBB(color, PAWN) & centralFiles & centralRanks;

int count = PopCount(badPawns) * PopCount(blockedBadPawns);
eval += count * BishopBadP;
Expand Down

0 comments on commit 878cac1

Please sign in to comment.