示例#1
0
        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);
        }
示例#2
0
 public DoorsNumberRandom(ISettingProvider settingProvider)
 {
     this.gameSettings = settingProvider.GetGameSettings();
 }