/// <summary> /// Takes all cards in a players hand, /// and moves them to the discard pile. /// </summary> public void ClearBoard() { //Move all the cards from the board and into the discard pile. for (int i = 0; i < CardsPlayedList.Count; i++) { DiscardPileList.Add(CardsPlayedList[i]); } //Clear the list of cards played CardsPlayedList.Clear(); //Clear the listbox PlayArea.Items.Clear(); }
//#################################################################### //# Public Methods /// <summary> /// Adds a card to the Board. /// </summary> /// <param name="c">The card to be played</param> public void AddCard(Card c) { CardsPlayedList.Add(c); }