public SearchService(PossibleMovesService possibleMovesService, IEvaluationService evaluationService, IInterruptor interruptor)
 {
     PossibleMovesService = possibleMovesService;
     EvaluationService    = evaluationService;
     Interruptor          = interruptor;
     TTable = new TranspositionTable <SearchTTEntry>(26);
 }
Beispiel #2
0
        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;
        }
 public UCIProtocol(IInterruptor interruptor)
 {
     Game = new Game(interruptor);
     Game.Search.OnSearchInfo += OnOnSearchInfo;
 }