Esempio n. 1
0
 private void OnBestMoveFound(object sender, BestMoveFoundEventArgs args)
 {
     if (null != _gameBoard && !_isPondering && Config.ReportIntermediateBestMoves)
     {
         ConsoleOut("{0};{1};{2:0.00}", NotationUtils.ToBoardSpaceMoveString(_gameBoard, args.Move), args.Depth, args.Score);
     }
 }
Esempio n. 2
0
        protected virtual void OnBestMoveFound(BestMoveFoundEventArgs e)
        {
            var handler = BestMoveFound;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Esempio n. 3
0
        private void OnBestMoveFound(object sender, BestMoveFoundEventArgs args)
        {
            if (null == args)
            {
                throw new ArgumentNullException("args");
            }

            if (null == args.Move)
            {
                throw new Exception("Null move reported!");
            }

            ConsoleOut("{0};{1};{2:0.00}", args.Move, args.Depth, args.Score);
        }
Esempio n. 4
0
 private bool IsPuzzleCandidate(BestMoveFoundEventArgs args)
 {
     return(args.Depth % 2 == 1 && double.IsPositiveInfinity(args.Score));
 }
Esempio n. 5
0
 static void _engine_BestMoveFound(object sender, BestMoveFoundEventArgs e)
 {
     _logger.InfoFormat("bestmove {0}", e.BestMove);
 }