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