コード例 #1
0
 public SearchService(PossibleMovesService possibleMovesService, IEvaluationService evaluationService, IInterruptor interruptor)
 {
     PossibleMovesService = possibleMovesService;
     EvaluationService    = evaluationService;
     Interruptor          = interruptor;
     TTable = new TranspositionTable <SearchTTEntry>(26);
 }
コード例 #2
0
ファイル: Game.cs プロジェクト: ZacharyDudley/chess-dot-net
        public Game(IInterruptor interruptor)
        {
            var hyperbola         = new HyperbolaQuintessence();
            var evaluationService = new EvaluationService();
            var attacksService    = new AttacksService(hyperbola);
            var movesService      = new PossibleMovesService(attacksService, hyperbola);
            var searchService     = new SearchService(movesService, evaluationService, interruptor);

            BoardFact  = new BoardFactory();
            Hyperbola  = hyperbola;
            Evaluation = evaluationService;
            Attacks    = attacksService;
            Moves      = movesService;
            Search     = searchService;
        }
コード例 #3
0
 public UCIProtocol(IInterruptor interruptor)
 {
     Game = new Game(interruptor);
     Game.Search.OnSearchInfo += OnOnSearchInfo;
 }