Esempio n. 1
0
 public GameRunner(IOverallScoreCalculator overallScoreCalculator, Func <string, IComputerPlayer> computerPlayerFactory, IRound round, IConfiguration configuration, IInputOutputWrapper inputOutputWrapper, IComputerPlayerViewModelHelper computerPlayerViewModelHelper, IGameMoveViewModelHelper gameMoveViewModelHelper)
 {
     _overallScoreCalculator = overallScoreCalculator;
     _computerPlayerFactory  = computerPlayerFactory;
     _round                         = round;
     _configuration                 = configuration;
     _inputOutputWrapper            = inputOutputWrapper;
     _computerPlayerViewModelHelper = computerPlayerViewModelHelper;
     _gameMoveViewModelHelper       = gameMoveViewModelHelper;
     _normalPlayer                  = new NormalPlayer();
 }
 public PlayerIdProvider(IInputOutputWrapper inputOutputWrapper, ILogger logger)
 {
     _inputOutputWrapper = inputOutputWrapper ?? throw new ArgumentNullException(nameof(inputOutputWrapper));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Esempio n. 3
0
 public Round(IRoundCalculator roundCalculator, IInputOutputWrapper inputOutputWrapper, IGameMoveViewModelHelper gameMoveViewModelHelper)
 {
     _roundCalculator         = roundCalculator;
     _inputOutputWrapper      = inputOutputWrapper;
     _gameMoveViewModelHelper = gameMoveViewModelHelper;
 }