Ejemplo n.º 1
0
        public GoFishGame Create(Settings settings)
        {
            GoFishGame result = new GoFishGame
            {
                RuleSet = settings.RuleSet,
                Deck    = _deckFactory.Create(settings.DeckSettings)
            };

            return(result);
        }
Ejemplo n.º 2
0
        public IInitialRoundState CreateRound(IEnumerable <IRoundPlayerState> players)
        {
            IList <IRoundPlayerState>          remainingPlayers = null;
            IList <ISetAsideCardState>         removedFromRound = CreateRemovedFromRound();
            IList <IDrawableCardState>         drawDeck         = null;
            IEnumerable <IShufflableCardState> shufflableDeck   = _deckFactory.Create();
            var round = new RoundState(players,
                                       remainingPlayers,
                                       removedFromRound,
                                       drawDeck,
                                       roundIndex: 0,
                                       winningPlayerState: null,
                                       currentPlayerState: null,
                                       drawableTurnState: null,
                                       discardableTurnState: null,
                                       shufflableDeck: shufflableDeck);

            return(round);
        }