Ejemplo n.º 1
0
 /// <summary>
 /// Called at the start of the game to make each player's hand 5 cards.
 /// </summary>
 internal void draw5Cards()
 {
     for (int i = 0; i < 5; i++)
     {
         Cards.Card cardOnTopOfDeck = MainDeck.drawTopCard();
         Hand.Add(cardOnTopOfDeck);
         MeReadOnly.NumberOfCardsInHand = MeReadOnly.NumberOfCardsInHand + 1;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Called Each Turn to add One card to the hand.
 /// </summary>
 internal void drawCard()
 {
     Cards.Card cardOnTopOfDeck = MainDeck.drawTopCard();
     Hand.Add(cardOnTopOfDeck as Cards.Card);
     MeReadOnly.NumberOfCardsInHand = MeReadOnly.NumberOfCardsInHand + 1;
 }