AIsOfCatan.StarterAgent.GetEnds C# (CSharp) Method

GetEnds() private method

private GetEnds ( Intersection inter, IBoard board ) : IEnumerable
inter AIsOfCatan.API.Intersection
board IBoard
return IEnumerable
        private IEnumerable<Intersection> GetEnds(Intersection inter, IBoard board)
        {
            return board.GetAdjacentEdges(inter).SelectMany(e => board.GetAdjacentIntersections(e)).Where(i => !i.Equals(inter));
        }