X-Git-Url: http://winboard.nl/cgi-bin?p=bonanza.git;a=blobdiff_plain;f=utility.c;h=2d6d8ec0b6f24c2d00fb671fd56ea6563542484b;hp=198aa901384eed068133005bb75c9566feada07a;hb=cygwin;hpb=31daebfc1031441aa180e3af2e547a8cd2b92c32 diff --git a/utility.c b/utility.c index 198aa90..2d6d8ec 100644 --- a/utility.c +++ b/utility.c @@ -586,6 +586,20 @@ com_turn_start( tree_t * restrict ptree, int flag ) } OutCsaShogi( "info tt %03u:%02u\n", sec_total / 60U, sec_total % 60U ); +#ifdef XBOARD + { extern char xboard_mode; + if(xboard_mode) { // print move in WB format and defuse next line + if(str_move[0] < '0' || str_move[0] > '9') Out("\n%s\n# ", str_move); // only resign? + else if(str_move[0] == '0') + Out("\nmove %c@%c%c\n# ", // drop + "PLNSGBR"[(move>>7&127)-nsquare], + '9'+'a'-str_move[2], '1'+'9'-str_move[3]); + else Out("\n#t=%d tm=%d\nmove %c%c%c%c%s\n# ", time_limit, time_max_limit, + '9'+'a'-str_move[0], '1'+'9'-str_move[1], + '9'+'a'-str_move[2], '1'+'9'-str_move[3], (move & FLAG_PROMO ? "+" : "=")); + } + } +#endif Out( "%s '(%d%s) %03u:%02u/%03u:%02u elapsed: b%u, w%u\n", str_move, value, ( last_pv.type == pv_fail_high ) ? "!" : "",