コード例 #1
0
 public GuessingNumbersGame()
 {
     NumberGenerator  = new NumberGenerator();
     PerformerGame    = new PerformerGame();
     ResultDisplay    = new ResultDisplay(new FakeConsole());
     ProgramExecution = new DecisionOnFurtherCourseOfProgram(this);
 }
コード例 #2
0
 public GuessingNumbersGame(INumberGenerator NumberGenerator,
                            IPerformerGame PerformerGame,
                            IResultDisplay ResultDisplay,
                            IDecisionOnFurtherCourseOfProgram ProgramExecution)
 {
     this.NumberGenerator  = NumberGenerator;
     this.PerformerGame    = PerformerGame;
     this.ResultDisplay    = ResultDisplay;
     this.ProgramExecution = ProgramExecution;
 }