public ChessGridViewModel(IEventService <SettingsChangeEventArgs> eventService, IChessMoveParserService parserService, IEnginePlayerService engineService, IBoardGeneratorService generator, IChessRulesService rules, IChessGameService game)
 {
     this.eventService          = eventService;
     eventService.StateChanged += SettingChangedHandler;
     this.engineService         = engineService;
     engineService.InitPlayer(300);
     this.GameService      = game;
     this.generatorService = generator;
     this.rulesService     = rules;
     this.ChessGrid        = new ObservableCollection <Square>();
     this.parserService    = parserService;
 }
Exemple #2
0
 public ChessMatchHub(IChessGameService chessGameService,
                      IOptions <ChessGameSettings> chessGameSettings,
                      IUserService userService,
                      IFileProvider fileProvider,
                      IELOProvider eLOProvider,
                      IPlayerService playerService
                      )
 {
     _chessGameService  = chessGameService;
     _chessGameSettings = chessGameSettings.Value;
     _userService       = userService;
     _fileProvider      = fileProvider;
     _eloProvider       = eLOProvider;
     _playerService     = playerService;
 }
Exemple #3
0
 public ApiGameController(ApplicationDbContext context, IChessGameService chessGameService, IGameService gameService)
 {
     _context          = context;
     _chessGameService = chessGameService;
     _gameService      = gameService;
 }