Game/GameManager.cs
/// <summary>
/// Gets all available coordinates from given list
/// </summary>
/// <param name="pieceList"></param>
/// <param name="xRay"></param>
/// <returns></returns>
Gets all available coordinates from given list
Gets all available coordinates from given list
private List<Coords> GetAllAvailableCoords(List<Piece> pieceList, bool xRay)
        {
            return pieceList
                .SelectMany(piece => GetAvailableCoords(piece, xRay))
                .ToList();
        }
private List < Coords > GetAllAvailableCoords ( List < Piece > pieceList , bool xRay ) { return pieceList . SelectMany ( piece => GetAvailableCoords ( piece , xRay ) ) . ToList ( ) ; }
Gets all available coordinates from given list
Gets all available coordinates from given list
None
pieceList
List<Piece>
None
xRay
bool
None