Beispiel #1
0
 static void Main(string[] args)
 {
     Deck myDeck = new Deck();
      myDeck.Shuffle();
      for (int i = 0; i < 52; i++)
      {
     Card tempCard = myDeck.GetCard(i);
     Console.Write(tempCard.ToString());
     if (i != 51)
        Console.Write(", ");
     else
        Console.WriteLine();
      }
      Console.ReadKey();
 }
Beispiel #2
0
 public object Clone()
 {
     Deck newDeck = new Deck(cards.Clone() as Cards);
      return newDeck;
 }