/// <summary> /// Utility method for copying card instances into another Cards /// instance-used in Deck.Shuffle(). This implementation assumes that /// source and target collections are ths same size. /// </summary> /// <param name="targetCards"></param> public void CopyTo(Cards targetCards) { for (int index = 0; index < targetCards.Count(); index++) { targetCards[index] = this[index]; } }
//addcardtoriver method, will add a card to Board public void AddCard(Card card) { theBoard.Add(card); riverCardsRemaning = theBoard.Count(); }
//addcardtohand method, add a card to the players hand public void AddCard(Card card) { hand.Add(card); cardCount = hand.Count(); }