Exemple #1
0
        public int CompareRankue(object otherHand)
        {
            BlackJackHand aHand = otherHand as BlackJackHand;

            if (aHand != null)
            {
                return(this.GetSumOfHand().CompareTo(aHand.GetSumOfHand()));
            }
            else
            {
                throw new ArgumentException("Argument is not a Hand");
            }
        }
Exemple #2
0
 public BlackJackHand NewHand()
 {
     Hand = new BlackJackHand();
     return(Hand);
 }
Exemple #3
0
 public Player(int newBalance)
 {
     Hand    = new BlackJackHand();
     Balance = newBalance;
 }