Skip to content

Commit

Permalink
Include bishops
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio committed Nov 22, 2024
1 parent 735f4ba commit 2726116
Show file tree
Hide file tree
Showing 2 changed files with 2,932 additions and 2,931 deletions.
3 changes: 2 additions & 1 deletion src/Lynx/Model/Position.cs
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,8 @@ private int KnightAdditionalEvaluation(int squareIndex, int pieceSide, int oppos
var offset = Utils.PieceOffset(pieceSide);
var majorPieces = PieceBitBoards[(int)Piece.k - offset] |
PieceBitBoards[(int)Piece.q - offset] |
PieceBitBoards[(int)Piece.r - offset];
PieceBitBoards[(int)Piece.r - offset] |
PieceBitBoards[(int)Piece.b - offset];

var enemyPiecesAttackedCount = (attacks & majorPieces).CountBits();

Expand Down
Loading

0 comments on commit 2726116

Please sign in to comment.