//Executes a unit test of class Card.
 static void testCard()
 {
     Console.WriteLine("Test Card:");
     Card c1 = new Card(Count.Ace, Suit.Hearts);
     Console.WriteLine("Card {0} has value {1}",
                       c1.ToString(), c1.BJvalue());
 }
示例#2
0
		/// <summary>
		/// This method will add cards to the hand.
		/// </summary>
		/// <param name="c"></param>
        public void add(Card c)
        { 
            h.Add(c); 
        }
示例#3
0
		public void add(Card c)
		{
			throw new NotImplementedException();
		}
示例#4
0
        /// <summary>
        /// Method to add card to Human player's hand.
        /// </summary>
        /// <param name="c"></param>
		public void getsCard(Card c)
		{
            
            h.add(c);  //throw new NotImplementedException();
		}
示例#5
0
 /// <summary>
 /// Adds a card to the players hand.
 /// </summary>
 /// <param name="c">The card to be added to the player's hand.</param>
 public void getsCard(Card c)
 {
     h.add(c);
     cardCounter++;
 }
 /// <summary>
 /// Adds a card to the players hand.
 /// </summary>
 /// <param name="c">The card to be added to the player's hand.</param>
 public void getsCard(Card c)
 {
     h.add(c);
 }