AIsOfCatan.StarterAgent.FindBestIntersection C# (CSharp) Метод

FindBestIntersection() приватный Метод

private FindBestIntersection ( IEnumerable enumerable, IBoard board ) : Intersection
enumerable IEnumerable
board IBoard
Результат AIsOfCatan.API.Intersection
        private Intersection FindBestIntersection(IEnumerable<Intersection> enumerable, IBoard board)
        {
            return enumerable.OrderByDescending(i => DifferentTypes(i,board)).ThenByDescending(i => GetScore(i,board)).First();
        }