Example #1
0
        private Game(IReadOnlyList <string> players, DeckCollection decks)
        {
            gameBoard =
                Enumerable
                .Repeat(decks, 3)
                .Flatten()
                .ToCircular();

            playersStatus = players.Select(p => new Player(p)).ToCircular();

            for (int i = 0; i < playersStatus.Count; i++)
            {
                visitor?.PlayerCreation(playersStatus[i].Name, i);
            }
        }
Example #2
0
 public IBuilder Decks(DeckCollection deckCollection)
 {
     this.deckCollection = deckCollection;
     return(this);
 }