// Check if the hand has BlackJack public bool HasBlackJack() { if (hand.GetSumOfHand() == 21 && hand.Cards.Count == 2) { return(true); } else { return(false); } }
// This method compares two BlackJack hands public int CompareHandsValue(BlackJackHand otherHand) { if (otherHand != null) { return(this.GetSumOfHand().CompareTo(otherHand.GetSumOfHand())); } else { throw new ArgumentException("Argument is not a Hand"); } }