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