Exemplo n.º 1
0
 public Game()
 {
     currentCard = 0;
     playDeck = new Deck(true);
     playDeck.LastCardDrawn += new LastCardDrawnHandler(Reshuffle);
     playDeck.Shuffle();
     discardedCards = new Cards();
 }
Exemplo n.º 2
0
 public object Clone()
 {
     Deck newDeck = new Deck(cards.Clone() as Cards);
     return newDeck;
 }
Exemplo n.º 3
0
 public void Reshuffle(Deck currentDeck)
 {
     Console.WriteLine("Отброшеные карты перетасованы и переданы в колоду.");
     currentDeck.Shuffle();
     discardedCards.Clear();
     currentCard = 0;
 }
Exemplo n.º 4
0
        public object Clone()
        {
            Deck newDeck = new Deck(cards.Clone() as Cards);

            return(newDeck);
        }