diff --git a/src/Lynx/Generated/Lynx.Generator/Lynx.Generator.GeneratedPackGenerator/EvaluationParams.g.cs b/src/Lynx/Generated/Lynx.Generator/Lynx.Generator.GeneratedPackGenerator/EvaluationParams.g.cs index 9b0eef65..e971ebca 100644 --- a/src/Lynx/Generated/Lynx.Generator/Lynx.Generator.GeneratedPackGenerator/EvaluationParams.g.cs +++ b/src/Lynx/Generated/Lynx.Generator/Lynx.Generator.GeneratedPackGenerator/EvaluationParams.g.cs @@ -50,6 +50,6 @@ static partial class EvaluationParams /// /// /// - public const int KnightAttacksRooksBonus = 131073; + public const int KnightAttacksQueenBonus = 131073; } diff --git a/src/Lynx/Model/Position.cs b/src/Lynx/Model/Position.cs index ef8fbed3..e1c472b9 100644 --- a/src/Lynx/Model/Position.cs +++ b/src/Lynx/Model/Position.cs @@ -734,8 +734,8 @@ private int KnightAdditionalEvaluation(int squareIndex, int pieceSide, int oppos packedBonus += CheckBonus[(int)Piece.N] * checks; // Attacks to enemy rooks - var rookAttacksCount = (attacks & PieceBitBoards[(int)Piece.r - Utils.PieceOffset(pieceSide)]).CountBits(); - packedBonus += KnightAttacksRooksBonus * rookAttacksCount; + var queenAttacksCount = (attacks & PieceBitBoards[(int)Piece.q - Utils.PieceOffset(pieceSide)]).CountBits(); + packedBonus += KnightAttacksQueenBonus * queenAttacksCount; return packedBonus; } diff --git a/src/Lynx/TunableEvalParameters.cs b/src/Lynx/TunableEvalParameters.cs index 30f9ad8a..e76fb59b 100644 --- a/src/Lynx/TunableEvalParameters.cs +++ b/src/Lynx/TunableEvalParameters.cs @@ -6044,7 +6044,7 @@ public static partial class EvaluationParams private static readonly int _PieceAttackedByPawnPenalty; [GeneratedPack(1, 2)] - private static readonly int _KnightAttacksRooksBonus; + private static readonly int _KnightAttacksQueenBonus; #pragma warning restore IDE0051, IDE0052, CS0169 // Remove unread private members