Пример #1
0
        private static ICardComparer GetCardComparer(CardKindResolver x)
        {
            ICardComparer comparer = null;

            if (x.Kind == CardKind.FlushStraight)
            {
                comparer = new FlushStraightComparer();
            }

            return(comparer);
        }
Пример #2
0
 public BattleGame(IDeckService deckService,
                   ICardComparer cardComparer)
 {
     _deckService  = deckService;
     _cardComparer = cardComparer;
 }
Пример #3
0
 public ManagementSvc(IListLoaderSvc listLoaderSvc, IRandomCardPicker randomCardPicker, ICardComparer cardComparer)
 {
     _listLoaderSvc    = listLoaderSvc;
     _randomCardPicker = randomCardPicker;
     _cardComparer     = cardComparer;
 }