public ScalingFactorFitness(int testId, WebService webService)
        {
            _testId     = testId;
            _webService = webService;

            _engineOperator = new EngineOperator(SettingsLoader.Data.EnginePath, SettingsLoader.Data.EngineArguments);
            _engineOperator.Init();
            _engineOperator.LoadEpd(SettingsLoader.Data.PositionsDatabasePath);
        }
Exemple #2
0
        public EvaluationFitness(int testId, WebService webService)
        {
            _testId     = testId;
            _webService = webService;
            _referenceEngineOperator    = new EngineOperator(SettingsLoader.Data.EnginePath, SettingsLoader.Data.EngineArguments);
            _experimentalEngineOperator = new EngineOperator(SettingsLoader.Data.EnginePath, SettingsLoader.Data.EngineArguments);
            _polyglotBook = new PolyglotBook(SettingsLoader.Data.PolyglotOpeningBook);

            _referenceEngineOperator.Init();
            _experimentalEngineOperator.Init();
        }