Beispiel #1
0
        public int GetPointsFor(CatanColorType color)
        {
            int points = 0;

            foreach (CatanCity city in Map.Cities)
            {
                points += city.Tier; // 1 OR 2
            }

            foreach ((CatanCardType type, int amount) in GetPlayer(color).Cards)
            {
                if (type == CatanCardType.Victory)
                {
                    points += amount;
                }
            }

            return(points);
        }
Beispiel #2
0
 public CatanPlayer GetPlayer(CatanColorType color)
 => Players.First(x => x.Color == color);