X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=blobdiff_plain;f=xboard2uci.c;h=1445dfe6746eb7d7fe5b7eff6efe7679567597ce;hp=06a20706fdbf3b4eeb137b90fd64c9041b346ff4;hb=ef1e622dcb7d87af51c1ba85c5985a7c3b6f28ee;hpb=a9ecc687f7cfb4760cd3170a6cb32261aa2a458e diff --git a/xboard2uci.c b/xboard2uci.c index 06a2070..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