public void TestSimpleSum() { _cardHand.AddCard(GameObject.Instantiate(_card3)); _cardHand.AddCard(GameObject.Instantiate(_cardK)); Assert.AreEqual(13, _cardHand.GetHandValue()); }
private void UpdateDisplayValue(object sender, System.EventArgs e) { ToggleDisplayVisibility(); _sumDisplayText.text = _cardHand.GetHandValue().ToString(); RepositionDisplay(); }
/// <summary> /// Returns the player's hand's value /// </summary> /// <returns>hand's value</returns> public int GetHandValue() { return(_cardHand.GetHandValue()); }