public static UCI GetEngine() { if(SingletonObject == null) SingletonObject = new UCI(); return SingletonObject; }
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); //} }