X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard2uci.c;h=1445dfe6746eb7d7fe5b7eff6efe7679567597ce;hb=ef1e622dcb7d87af51c1ba85c5985a7c3b6f28ee;hp=c8c835474779d1994de309664dba9f3ba8862aae;hpb=a522b5e3c945c6b03810a870bc7016b0b6023c64;p=polyglot.git diff --git a/xboard2uci.c b/xboard2uci.c index c8c8354..1445dfe 100644 --- a/xboard2uci.c +++ b/xboard2uci.c @@ -752,18 +752,18 @@ void xboard2uci_engine_step(char string[]) { } } if(((event & EVENT_ILLEGAL_MOVE)!=0) && (State->state == THINK)){ - game_get_board(Game,board); - if(board->turn==White){ - gui_send(GUI,"0-1 {polyglot: resign" - " (illegal engine move white)}"); - }else{ - gui_send(GUI,"1-0 {polyglot: resign" - " (illegal engine move black)}"); - } - board_disp(board); - XB->result = TRUE; - mess(); - } + game_get_board(Game,board); + if(board->turn==White){ + gui_send(GUI,"0-1 {polyglot: resign" + " (illegal engine move by white: %s)}",Uci->bestmove); + }else{ + gui_send(GUI,"1-0 {polyglot: resign" + " (illegal engine move by black: %s)}",Uci->bestmove); + } + board_disp(board); + XB->result = TRUE; + mess(); + } } // format_xboard_option_line @@ -838,6 +838,7 @@ static void send_xboard_options(){ gui_send(GUI,"feature pause=0"); gui_send(GUI,"feature ping=1"); gui_send(GUI,"feature playother=1"); + gui_send(GUI,"feature sigint=1"); gui_send(GUI,"feature reuse=1"); gui_send(GUI,"feature san=0"); gui_send(GUI,"feature setboard=1");