diff --git a/Rudim/Board/BoardState.Moves.cs b/Rudim/Board/BoardState.Moves.cs index bafa89f..fd7b977 100644 --- a/Rudim/Board/BoardState.Moves.cs +++ b/Rudim/Board/BoardState.Moves.cs @@ -363,7 +363,7 @@ private ulong GetBoardHash() currentHash ^= ZobristTable[12, (int)EnPassantSquare]; } - return Moves.Where(move => move.IsPromotion()).Aggregate(currentHash, (current, move) => current ^ ZobristTable[13, (int)move.Type.Piece]); + return currentHash; } public static void ClearMoveCache()