}\r
}\r
if(((event & EVENT_ILLEGAL_MOVE)!=0) && (State->state == THINK)){\r
- game_get_board(Game,board);\r
- if(board->turn==White){\r
- gui_send(GUI,"0-1 {polyglot: resign"\r
- " (illegal engine move white)}");\r
- }else{\r
- gui_send(GUI,"1-0 {polyglot: resign"\r
- " (illegal engine move black)}");\r
- }\r
- board_disp(board);\r
- XB->result = TRUE;\r
- mess();\r
- }\r
+ game_get_board(Game,board);\r
+ if(board->turn==White){\r
+ gui_send(GUI,"0-1 {polyglot: resign"\r
+ " (illegal engine move by white: %s)}",Uci->bestmove);\r
+ }else{\r
+ gui_send(GUI,"1-0 {polyglot: resign"\r
+ " (illegal engine move by black: %s)}",Uci->bestmove);\r
+ }\r
+ board_disp(board);\r
+ XB->result = TRUE;\r
+ mess();\r
+ }\r
}\r
\r
// format_xboard_option_line\r