Пример #1
0
 public BlackJack(int amountOfDecks = 3)
 {
     mainDeck   = new CardsDeck(amountOfDecks);
     dealerHand = new BlackJackHand(mainDeck, 0);
     dealerHand.PlayerGetCardEvent += OnPlayerGetCard;
     playerHand = new BlackJackHand(mainDeck, 1);
     playerHand.PlayerGetCardEvent += OnPlayerGetCard;
 }
Пример #2
0
 public BlackJackHand(CardsDeck desk, int playerId)
 {
     this.MotherDesk = desk;
     this.playerId   = playerId;
     cards           = new List <Card>();
 }