From 929ac76034d252f8a8014564b09a27108df40a29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20C=C3=A1ceres?= Date: Sun, 5 Jan 2025 19:05:05 +0100 Subject: [PATCH] Remove PieceAttackedByPawnPenalty --- src/Lynx/Model/Position.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Lynx/Model/Position.cs b/src/Lynx/Model/Position.cs index d3c71f00d..22f001212 100644 --- a/src/Lynx/Model/Position.cs +++ b/src/Lynx/Model/Position.cs @@ -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