private static ICardComparer GetCardComparer(CardKindResolver x) { ICardComparer comparer = null; if (x.Kind == CardKind.FlushStraight) { comparer = new FlushStraightComparer(); } return(comparer); }
public BattleGame(IDeckService deckService, ICardComparer cardComparer) { _deckService = deckService; _cardComparer = cardComparer; }
public ManagementSvc(IListLoaderSvc listLoaderSvc, IRandomCardPicker randomCardPicker, ICardComparer cardComparer) { _listLoaderSvc = listLoaderSvc; _randomCardPicker = randomCardPicker; _cardComparer = cardComparer; }