Пример #1
0
        private bool HasBunco()
        {
            if (HasThree() == false)
            {
                return(false);
            }
            int tempValue = _saveRoot !.DiceList.First().Value;

            return(tempValue == _saveRoot.WhatNumber);
        }
Пример #2
0
 public int DiceValue(int index)
 {
     if (index == 1)
     {
         return(_model.Cup !.DiceList.First().Value);
     }
     else if (index == 2)
     {
         return(_model.Cup !.DiceList.Last().Value);
     }
     else
     {
         throw new BasicBlankException($"Must be 1 or 2, not {index} to find the dice value");
     }
 }