Пример #1
0
 private void SetStatus(HandStatusTypes status)
 {
     if (BustHand())
     {
         Status = HandStatusTypes.Bust;
     }
     else if (cards.Count() == maxCardCount || PointValue == BlackJackConstants.BlackJack)
     {
         Status = HandStatusTypes.BlackJack;
     }
     else
     {
         Status = status;
     }
 }
Пример #2
0
 private void SetStatus(HandStatusTypes status) => Status = BustHand() ?
                                                            HandStatusTypes.Bust : status;