Ejemplo n.º 1
0
 public ComputerPlayer(ChessSide side, byte skill, IChessUCIEngine chessUCIEngine) : base(PlayerType.computer, side)
 {
     this.skill          = skill;
     this.chessUCIEngine = chessUCIEngine;
     this.chessUCIEngine.StartEngine();
     this.chessUCIEngine.SetSkill(skill);
 }
Ejemplo n.º 2
0
 public ServiceLocator(IChessUCIEngine chessUCIEngine, IGameLoaderSaverService gameLoaderSaverService)
 {
     Singleton              = this;
     ChessUCIEngine         = chessUCIEngine;
     GameLoaderSaverService = gameLoaderSaverService;
 }
Ejemplo n.º 3
0
 public IPlayer CreateComputerPlayer(ChessSide side, SkillLevel skillLevel, IChessUCIEngine uciEngine)
 {
     return(new ComputerPlayer(side, (byte)skillLevel, uciEngine));
 }