X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=blobdiff_plain;f=xboard2uci.c;h=8f4614e0dae5ed34e5e27ee6805893e6003b1280;hp=fe0ded347f16365dcd7c90a37c57fe3b2f066839;hb=07103358be1a2a550ad1f6663a3724fbc1652451;hpb=ae338a820ef1c16d4399958613bbc0b908904b91 diff --git a/xboard2uci.c b/xboard2uci.c index fe0ded3..8f4614e 100644 --- a/xboard2uci.c +++ b/xboard2uci.c @@ -1334,9 +1334,17 @@ static void search_update() { " nodes %.0f", XB->time_max*((double)XB->node_rate)); }else{ + double computed_time; + double st_fudge; + st_fudge=(double) option_get_int(Option,"STFudge"); + my_log("POLYGLOT Giving engine %.0fmsec extra time.\n",st_fudge); + computed_time=XB->time_max*1000.0-st_fudge; + if(computed_time< 1.0){ + computed_time=1.0; + } engine_send_queue(Engine, " movetime %.0f", - XB->time_max*1000.0); + computed_time); } } else { @@ -1583,8 +1591,9 @@ static void send_info() { }else{ min_depth=1; } + gui_send(GUI,"%d %+d %.0f "S64_FORMAT" %s",Uci->best_depth>min_depth?Uci->best_depth:min_depth, - 0,0,0.0,0,Uci->info); + 0,0.0,0,Uci->info); } // send_pv()