Game/Pieces/Piece.cs
/// <summary>
/// Filters out normal coords when a piece is blocking, can only move in same direction or taking over attacking piece
/// </summary>
/// <param name="availableCoordsList"></param>
/// <returns></returns>
Filters out normal coords when a piece is blocking, can only move in same direction or taking over attacking piece
Filters out normal coords when a piece is blocking can only move in same direction or taking over attacking piece
protected List<Coords> FilterKingProtectionCoords(List<Coords> availableCoordsList)
        {
            if(Blocking.Count < 1)
                return availableCoordsList;
            return Blocking
                .Select(x => x.Coordinate)
                .Intersect(availableCoordsList)
                .ToList();
        }
protected List < Coords > FilterKingProtectionCoords ( List < Coords > availableCoordsList ) { if ( Blocking . Count < 1 ) return availableCoordsList ; return Blocking . Select ( x => x . Coordinate ) . Intersect ( availableCoordsList ) . ToList ( ) ; }
Filters out normal coords when a piece is blocking, can only move in same direction or taking over attacking piece
Filters out normal coords when a piece is blocking can only move in same direction or taking over attacking piece
None
availableCoordsList
List<Coords>
None