Exemplo n.º 1
0
        public static void SendBestMove(ThreadData threadData)
        {
            if (NoOutput)
            {
                return;
            }

            Statistics.Print();
            if (UciOptions.Ponder && threadData.GetPonderMove() != 0)
            {
                Console.WriteLine("bestmove " + new MoveWrapper(threadData.GetBestMove()) + " ponder " +
                                  new MoveWrapper(threadData.GetPonderMove()));
            }
            else
            {
                Console.WriteLine("bestmove " + new MoveWrapper(threadData.GetBestMove()));
            }
        }