Example #1
1
 public static UCI GetEngine()
 {
     if(SingletonObject == null)
         SingletonObject = new UCI();
         return SingletonObject;
 }
Example #2
0
 public static UCI GetEngine()
 {
     if (SingletonObject == null)
     {
         SingletonObject = new UCI();
     }
     return(SingletonObject);
 }
        public EngineConfiguration(UCI currentEngine)
        {
            InitializeComponent();

            Engine = currentEngine;
            Engine.AddDataReceivedEventHandler(EngineDataReceived);
            Engine.EngineCommand(UCI.kSetUCIMode);
            //if (Engine == null)
            //{
            //    Engine = UCI.GetEngine();
            //    Engine.InitEngine("stockfishengine.exe", string.Empty, EngineDataReceived);
            //}
        }
        public EngineConfiguration(UCI currentEngine)
        {
            InitializeComponent();

            Engine = currentEngine;
            Engine.AddDataReceivedEventHandler(EngineDataReceived);
            Engine.EngineCommand(UCI.kSetUCIMode);
            //if (Engine == null)
            //{
            //    Engine = UCI.GetEngine();
            //    Engine.InitEngine("stockfishengine.exe", string.Empty, EngineDataReceived);
            //}
        }