Beispiel #1
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");
     }
 }