From: H.G. Muller <h.g.muller@hccnet.nl>
Date: Tue, 24 Sep 2013 20:04:24 +0000 (+0200)
Subject: Write ponder move (in parentheses) in XBoard thinking output
X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=b47ca930e2588af857c9eacadd7377c8870a57bf;p=bonanza.git

Write ponder move (in parentheses) in XBoard thinking output
---

diff --git a/searchr.c b/searchr.c
index 6d2af78..9a1d244 100644
--- 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 )
 	    {