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