/// <summary> /// Handler for the UCIChessEngine command responses /// </summary> /// <param name="sender">ignored</param> /// <param name="e">ignored</param> private void ChessEngineResponseReceivedEventHandler(object sender, ChessEngineResponseReceivedEventArgs e) { Trace.WriteLine(String.Format("Engine RESP: {0}", e.Response)); if (++commandCount >= 12) // Needs to match the number of commands sent { Trace.WriteLine("Last response...setting exit event"); testDone.Set(); } }
/// <summary> /// Handler for the UCIChessEngine verbose responses /// </summary> /// <param name="sender">ignored</param> /// <param name="e">ignored</param> private void ChessEngineVerboseResponseReceivedEventHandler(object sender, ChessEngineResponseReceivedEventArgs e) { ++verboseCount; }