예제 #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");
            }
        }
예제 #2
0
 public BlackJackHand NewHand()
 {
     Hand = new BlackJackHand();
     return(Hand);
 }
예제 #3
0
 public Player(int newBalance)
 {
     Hand    = new BlackJackHand();
     Balance = newBalance;
 }