Пример #1
0
 public void RevealCard()
 {
     try
     {
         RevealedCards.Add(HiddenCards[0]);
         HiddenCards.RemoveAt(0);
     }
     catch
     {
     }
 }
Пример #2
0
 /// <summary>
 /// Take the top card from HiddenCards, remove it, and add it to RevealedCards.
 /// </summary>
 public static void RevealCard()
 {
     RevealedCards.Add(HiddenCards[0]);
     HiddenCards.RemoveAt(0);
 }