Skip to content

Commit

Permalink
Make pawn phalanx bucketed
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio committed Jan 6, 2025
1 parent 4083bca commit 9790982
Show file tree
Hide file tree
Showing 2 changed files with 5,010 additions and 4,810 deletions.
2 changes: 1 addition & 1 deletion src/Lynx/Model/Position.cs
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ private int PawnAdditionalEvaluation(int bucket, int squareIndex, int pieceIndex
// Pawn phalanx
if (Constants.File[squareIndex] != 7 && PieceBitBoards[pieceIndex].GetBit(squareIndex + 1))
{
packedBonus += PawnPhalanxBonus[rank];
packedBonus += PawnPhalanxBonus[bucket][rank];
}

return packedBonus;
Expand Down
Loading

0 comments on commit 9790982

Please sign in to comment.