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

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

private DifferentTypes ( Intersection inter, IBoard board ) : int
inter AIsOfCatan.API.Intersection
board IBoard
Результат int
        private int DifferentTypes(Intersection inter, IBoard board)
        {
            return inter.ToArray().Select(i => board.GetTile(i).Terrain).Where(t => t != Terrain.Water && t != Terrain.Desert).Distinct().Count();
        }