Example #1
0
        private void StartThinkingAndPlayMove()
        {
            // TODO: Run thinking on background thread
            var moveToPlay = decisionMaker
                             .FindBestMove(chessEngine.CurrentPosition)
                             .Result;

            moveToPlay.MatchSome(x => consoleOutputQueue.Add($"bestmove {MoveToUciNotation(x)}"));
        }