示例#1
0
 private void StoreMatch(Player p1, Card card)
 {
     p1.Matches.Add(card.Id);
     p1.Matches.Add(card.Pair);
 }
示例#2
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;
 }