Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
        /// <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);
        }