Skip to content

Commit

Permalink
Merge branch 'main' into net-9
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio authored Nov 13, 2024
2 parents fc01ca6 + ad7601c commit b9c02d1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Lynx/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ public static int PieceOffset(int side)
/// </summary>
/// <param name="isWhite"></param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static int PieceOffset(bool isWhite)
{
return 6 - (6 * (isWhite ? 1 : 0));
}
public static int PieceOffset(bool isWhite) => isWhite ? 0 : 6;

/// <summary>
/// Side.Black -> Side.White
Expand Down

0 comments on commit b9c02d1

Please sign in to comment.