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); //} }
private void btnTestCommand_Click(object sender, EventArgs e) { Engine.EngineCommand(txtTestCommand.Text); }