Example #1
0
 public TypeIdGenerator(IGetMarketableTypeIdsList getMarketableTypeIdsList,
                        IRandomChooser randomChooser)
 {
     m_GetMarketableTypeIdsList = new Lazy <IEnumerable <TypeId> >(() =>
                                                                   getMarketableTypeIdsList.Get());
     m_RandomChooser = randomChooser;
 }
Example #2
0
 public Game()
 {
     _randomChooser = new RandomChooser();
 }
Example #3
0
 public Game(IRandomChooser randomChooser)
 {
     _randomChooser = randomChooser;
 }
Example #4
0
 public Game(IConsoleOperations consoleOperations, List <IPlayer> humanPlayers, IRandomChooser randomChooser)
 {
     _deck = new Deck(randomChooser);
     _consoleOperations = consoleOperations;
     _computer          = new PlayerHand(new PlayerComputer((consoleOperations)));
     _humanPlayers      = humanPlayers.Select(s => new PlayerHand(s)).ToList();
 }
Example #5
0
 public Deck(IRandomChooser randomChooser)
 {
     _randomChooser = randomChooser;
     Reset();
 }