Exemplo n.º 1
0
Arquivo: Game.cs Projeto: djericj/Uno
        private void ReloadFromDiscard()
        {
            Object obj = new Object();

            lock (obj)
            {
                Card[] discardCards = new Card[Discard.Count()];
                Discard.CopyTo(discardCards, 0);
                foreach (var card in discardCards)
                {
                    GameDeck.Enqueue(card);
                }
                Discard.Clear();
            }
        }