public TypeIdGenerator(IGetMarketableTypeIdsList getMarketableTypeIdsList, IRandomChooser randomChooser) { m_GetMarketableTypeIdsList = new Lazy <IEnumerable <TypeId> >(() => getMarketableTypeIdsList.Get()); m_RandomChooser = randomChooser; }
public Game() { _randomChooser = new RandomChooser(); }
public Game(IRandomChooser randomChooser) { _randomChooser = randomChooser; }
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(); }
public Deck(IRandomChooser randomChooser) { _randomChooser = randomChooser; Reset(); }