Ejemplo n.º 1
0
        public void SetCategoryType()
        {
            Dictionary <int, int> secondPlayerGroup =
                Dices.GroupBy(m => m).ToDictionary(s => s.Key, s => s.Count());

            if (secondPlayerGroup.Count() == 4)
            {
                CategoryType = CategoryType.NoPoints;
            }
            else if (secondPlayerGroup.Count() == 1)
            {
                CategoryType = CategoryType.AllTheSameKind;
            }
            else if (secondPlayerGroup.Count() == 3)
            {
                CategoryType = CategoryType.NormalPoints;
            }
        }