do not consider empty move strings an invalid move - just ask again default tip

Tue, 26 May 2026 15:29:00 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 26 May 2026 15:29:00 +0200
changeset 128
ce38ee9bc3af
parent 127
7258a46bf5ae

do not consider empty move strings an invalid move - just ask again

src/game.c file | annotate | diff | comparison | revisions
--- a/src/game.c	Tue May 26 15:21:42 2026 +0200
+++ b/src/game.c	Tue May 26 15:29:00 2026 +0200
@@ -253,6 +253,8 @@
                 return 1;
             } else if (strncmp(movestr, "savepgn", MOVESTR_BUFLEN) == 0) {
                 save_pgn(gamestate, gameinfo);
+            } else if (movestr[0] == 0) {
+                /* ignore empty move strings and ask again */
             } else {
                 Move move;
                 int result = eval_move(gamestate, movestr, &move, curcolor);
@@ -387,6 +389,8 @@
                         remis_rejected = true;
                     }
                 }
+            } else if (movestr[0] == 0) {
+                /* ignore empty move strings and ask again */
             } else {
                 Move move;
                 int eval_result = eval_move(gamestate, movestr, &move, mycolor);

mercurial