public GameLogic( IPhraseProvider phraseProvider, IInputAndOutput inputAndOutput, IGetDoorsNumber getDoors, IChooseDoorsStorage doorsStorage, ISettingProvider settingProvider) { this.phraseProvider = phraseProvider; this.inputAndOutput = inputAndOutput; this.doorsStorage = doorsStorage; this.gameSetting = settingProvider.GetGameSettings(); this.Doors = getDoors.GetDoorsNumber(gameSetting.DoorsAmount); }
public DoorsNumberRandom(ISettingProvider settingProvider) { this.gameSettings = settingProvider.GetGameSettings(); }