/// <summary> /// Ask the engine to evaluate the current board for the best move. This /// is an asynchronous call. ChessEngineResponseReceivedEventHandler will /// fired when the command is processed /// </summary> public void GetBestMoveAsync() { UciGoCommand command = new UciGoCommand(thinkTime.ToString()); command.Execute(engine); }
/// <summary> /// Start analyzing the current position for the best move /// </summary> /// <param name="timeInMilliseconds">Time in milliseconds to think at /// a maximum as a string, e.g. "2000" is 2 seconds</param> public void GetMoveForCurrentPosition(string timeInMilliseconds) { UciGoCommand command = new UciGoCommand(timeInMilliseconds); command.Execute(this); }