public void AddCard(ref Deck A) { if (CountPoints() < 17) { _hand.AddCard(ref A); } }
public void AddCard(ref Deck A) { int number = 0, lear = 0; Bitmap bmp = new Bitmap(120,120); A.GetCard(ref number, ref lear, ref bmp); _cardsInHand.Add(new Card(number,lear,bmp)); }
public void Game() { //cards = new List<Card>(); _player = new Player(); _dealer = new Dealer(); int posX = 600; for (int i = 0; i < 4; i++) { decks[i] = new Deck(numberCards, posX); posX += 100; } int numberDeck = r.Next(0, 3); _player.AddCard(ref decks[numberDeck]); numberDeck = r.Next(0, 3); _player.AddCard(ref decks[numberDeck]); numberDeck = r.Next(0, 3); _dealer.AddCard(ref decks[numberDeck]); draw(); }
public void AddCard(ref Deck A) { _hand.AddCard(ref A); }