version 1.4.60b
[polyglot.git] / xboard2uci.c
index 06a2070..1445dfe 100644 (file)
@@ -752,18 +752,18 @@ void xboard2uci_engine_step(char string[]) {
                        }\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