Example #1
0
        private void InitializeEngineIfNeeded()
        {
            if (!haveInitializedEngine)
            {
                // Create the engine (to be subsequently reused).
                CeresEngine = new GameEngineCeresInProcess("Ceres", EvaluatorDef, ParamsSearch, ParamsSelect);

                // Initialize engine
                CeresEngine.Warmup();
                haveInitializedEngine = true;
            }
        }
Example #2
0
        private void InitializeEngineIfNeeded()
        {
            if (!haveInitializedEngine)
            {
                ShowWeightsFileInfo();

                // Create the engine (to be subsequently reused).
                CeresEngine = new GameEngineCeresInProcess("Ceres", EvaluatorDef, ParamsSearch, ParamsSelect, logFileName: searchLogFileName);

                // Disable verbose move stats from the engine since
                // this class manages the possibly dumping of verbose move stats itself.
                CeresEngine.VerboseMoveStats = false;

                // Initialize engine
                CeresEngine.Warmup();
                haveInitializedEngine = true;
            }
        }