src/chess/rules.c

changeset 67
c76e46970a59
parent 66
f5cc75565f7c
child 68
b34de5ce7d0e
     1.1 --- a/src/chess/rules.c	Wed Aug 29 15:12:24 2018 +0200
     1.2 +++ b/src/chess/rules.c	Wed Aug 29 17:05:40 2018 +0200
     1.3 @@ -71,7 +71,7 @@
     1.4      };
     1.5  }
     1.6  
     1.7 -/* MUST be called BEFORE applying a move to work correctly */
     1.8 +/* MUST be called BETWEEN validating AND applying a move to work correctly */
     1.9  static void format_move(GameState *gamestate, Move *move) {
    1.10      char *string = &(move->string[0]);
    1.11      
    1.12 @@ -154,7 +154,6 @@
    1.13      
    1.14      /* check? */
    1.15      if (move->check) {
    1.16 -        // TODO: does not work, because checkmate is not set when format_move is called
    1.17          string[idx++] = gamestate->checkmate?'#':'+';
    1.18      }
    1.19  }

mercurial