Skip to content

Commit

Permalink
Remove bugged code that has no effect on the result (#716)
Browse files Browse the repository at this point in the history
Fixes #715 

No functional change

Bench: 23621947
  • Loading branch information
TerjeKir authored Aug 29, 2024
1 parent 29fc014 commit 16e859e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evaluate.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ INLINE int EvalPiece(const Position *pos, EvalInfo *ei, const Color color, const
if (pt == BISHOP) {
Bitboard bishopSquares = (BB(sq) & BlackSquaresBB) ? BlackSquaresBB : ~BlackSquaresBB;
Bitboard badPawns = colorPieceBB(color, PAWN) & bishopSquares;
Bitboard blockedBadPawns = ShiftBB(pieceBB(ALL), down) & colorPieceBB(color, PAWN) & ~(FILE_A | FILE_B | FILE_G | FILE_H);
Bitboard blockedBadPawns = ShiftBB(pieceBB(ALL), down) & colorPieceBB(color, PAWN);

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

0 comments on commit 16e859e

Please sign in to comment.