Exemplo n.º 1
0
        private bool IsMatch(Game game, Card card)
        {
            if (card == null)
                return false;

            if (game.LastCard != null)
            {
                if (game.LastCard.Pair == card.Id)
                {
                    return true;
                }

                return false;
            }

            return false;
        }
Exemplo n.º 2
0
 private void StoreMatch(Player player, Card card)
 {
     player.Matches.Add(card.Id);
     player.Matches.Add(card.Pair);
 }