private Card GetCurrentMaxCardInColor( CardColor color )
{
Card maxCard = null;
CardComparer comparer = new CardComparer( _playingManager.CurrentAnnouncement.Type );
foreach ( Card card in _playingManager.RemainingCards )
{
if ( card.CardColor == color )
{
if ( maxCard == null )
{
maxCard = card;
}
if ( comparer.Compare( maxCard, card ) < 0 )
{
maxCard = card;
}
}
}
foreach ( Card card in _playingManager.CurrentHand )
{
if ( card.CardColor == color )
{
if ( maxCard == null )
{
maxCard = card;
}
if ( comparer.Compare( maxCard, card ) < 0 )
{
maxCard = card;
}
}
}
return maxCard;
}