src/chess/rules.c

changeset 67
c76e46970a59
parent 66
f5cc75565f7c
child 68
b34de5ce7d0e
--- 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