Write ponder move (in parentheses) in XBoard thinking output
[bonanza.git] / searchr.c
index 6d2af78..9a1d244 100644 (file)
--- a/searchr.c
+++ b/searchr.c
@@ -370,7 +370,12 @@ out_pv( tree_t * restrict ptree, int value, int turn, unsigned int time )
       if ( ptree->pv[0].length )
        {
 #ifdef XBOARD
-          if(xboard_mode) Out("%2d %6d %6d %8d ", iteration_depth, value, time/10, 1); else
+          if(xboard_mode) {
+           Out("%2d %6d %6d %8d ", iteration_depth, value, time/10, 1);
+           if(game_status & flag_pondering && ! analyze_mode) {
+             Out("("); out_xboard_move( ponder_move, 1-tt ); Out(") ");
+           }
+         } else
 #endif
          if ( root_move_list[root_index].status & flag_first )
            {