Skip to content

Commit

Permalink
Remove PieceAttackedByPawnPenalty
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio committed Jan 5, 2025
1 parent dc145ea commit 929ac76
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Lynx/Model/Position.cs
Original file line number Diff line number Diff line change
Expand Up @@ -482,16 +482,6 @@ public bool WasProduceByAValidMove()
packedScore -= BishopPairBonus;
}

// Pieces attacked by pawns bonus
packedScore += PieceAttackedByPawnPenalty
* ((blackPawnAttacks & OccupancyBitBoards[(int)Side.White] /* & (~whitePawns) */).CountBits()
- (whitePawnAttacks & OccupancyBitBoards[(int)Side.Black] /* & (~blackPawns) */).CountBits());

if (gamePhase > MaxPhase) // Early promotions
{
gamePhase = MaxPhase;
}

int totalPawnsCount = whitePawns.CountBits() + blackPawns.CountBits();

// Pawnless endgames with few pieces
Expand Down

0 comments on commit 929ac76

Please sign in to comment.