Exemple #1
0
        private Card[][] CopyCards()
        {
            var copy = new Card[Cards.Length][];

            for (int i = 0; i < _memoryMatrixSizeHeight; i++)
            {
                copy[i] = new Card[_memoryMatrixSizeWidth];
                for (int j = 0; j < _memoryMatrixSizeWidth; j++)
                {
                    copy[i][j] = Cards[i][j].Copy();
                }
            }

            return copy;
        }
Exemple #2
0
 public Card CloseCard(Card card)
 {
     if (!card.Disabled)
     {
         card.CurrentAnimation = Card.CardAnimation.Cover;
     }
     else
     {
         _foundPairCards++;
     }
     return null;
 }