src/arasanx.cpp
// Find best move using the current board position.
//
Find best move using the current board position.
Find best move using the current board position .
static Move analyze(SearchController &searcher, Board &board, Statistics &stats)
{
    last_stats.clear();
    last_score = Constants::MATE;
    stats.clear();
    if (doTrace)
        cout << "# entering analysis search" << endl;
    Move move = searcher.findBestMove(board,
        FixedTime,
        INFINITE_TIME,
        0,
        Constants::MaxPly, false, uci,
        stats,
        Whisper);
    if (doTrace) {
        cout << "# search done : move = ";
        MoveImage(move,cout);
        cout << endl;
    }
    last_stats = stats;
    post_output(stats);
    return move;
}
static Move analyze ( SearchController & searcher , Board & board , Statistics & stats ) { last_stats . clear ( ) ; last_score = Constants :: MATE ; stats . clear ( ) ; if ( doTrace ) cout << " " << endl ; Move move = searcher . findBestMove ( board , FixedTime , INFINITE_TIME , 0 , Constants :: MaxPly , false , uci , stats , Whisper ) ; if ( doTrace ) { cout << " " ; MoveImage ( move , cout ) ; cout << endl ; } last_stats = stats ; post_output ( stats ) ; return move ; }
Find best move using the current board position.
Find best move using the current board position .