verified that checkmate notation does work correctly

Wed, 29 Aug 2018 17:05:40 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 29 Aug 2018 17:05:40 +0200
changeset 67
c76e46970a59
parent 66
f5cc75565f7c
child 68
b34de5ce7d0e

verified that checkmate notation does work correctly

src/chess/rules.c file | annotate | diff | comparison | revisions
--- a/src/chess/rules.c	Wed Aug 29 15:12:24 2018 +0200
+++ b/src/chess/rules.c	Wed Aug 29 17:05:40 2018 +0200
@@ -71,7 +71,7 @@
     };
 }
 
-/* MUST be called BEFORE applying a move to work correctly */
+/* MUST be called BETWEEN validating AND applying a move to work correctly */
 static void format_move(GameState *gamestate, Move *move) {
     char *string = &(move->string[0]);
     
@@ -154,7 +154,6 @@
     
     /* check? */
     if (move->check) {
-        // TODO: does not work, because checkmate is not set when format_move is called
         string[idx++] = gamestate->checkmate?'#':'+';
     }
 }

mercurial