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); } }
protected virtual void OnBestMoveFound(BestMoveFoundEventArgs e) { var handler = BestMoveFound; if (handler != null) { handler(this, e); } }
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); }
private bool IsPuzzleCandidate(BestMoveFoundEventArgs args) { return(args.Depth % 2 == 1 && double.IsPositiveInfinity(args.Score)); }
static void _engine_BestMoveFound(object sender, BestMoveFoundEventArgs e) { _logger.InfoFormat("bestmove {0}", e.BestMove); }