src/arasanx.cpp
// Execute a move made by the opponent or in "force" mode.
Execute a move made by the opponent or in "force" mode.
Execute a move made by the opponent or in " force " mode .
static void execute_move(Board &board,Move m)
{
    if (doTrace) {
        cout << "# execute_move: ";
        MoveImage(m,cout);
        cout << endl;
    }
    last_move = m;
    stringstream img;
    Notation::image(board,m,Notation::SAN_OUT,img);
    last_move_image = img.str();
    theLog->add_move(board,m,last_move_image,NULL,true);
    BoardState previous_state = board.state;
    board.doMove(m);
    if (gameMoves->length() > 0 && gameMoves->last().wasPonder()) {
        gameMoves->remove_move();
    }
    gameMoves->add_move(board,previous_state,m,last_move_image,false);
}
static void execute_move ( Board & board , Move m ) { if ( doTrace ) { cout << " " ; MoveImage ( m , cout ) ; cout << endl ; } last_move = m ; stringstream img ; Notation :: image ( board , m , Notation :: SAN_OUT , img ) ; last_move_image = img . str ( ) ; theLog -> add_move ( board , m , last_move_image , NULL , true ) ; BoardState previous_state = board . state ; board . doMove ( m ) ; if ( gameMoves -> length ( ) > 0 && gameMoves -> last ( ) . wasPonder ( ) ) { gameMoves -> remove_move ( ) ; } gameMoves -> add_move ( board , previous_state , m , last_move_image , false ) ; }
Execute a move made by the opponent or in "force" mode.
Execute a move made by the opponent or in " force " mode .
// If our last move added was the pondering move, replace it