src/chess/king.c

changeset 64
4eda5df55f86
parent 55
54ea19938d57
     1.1 --- a/src/chess/king.c	Wed Aug 29 13:45:13 2018 +0200
     1.2 +++ b/src/chess/king.c	Wed Aug 29 13:55:18 2018 +0200
     1.3 @@ -70,10 +70,10 @@
     1.4      
     1.5      uint8_t opponent_color = opponent_color(move->piece&COLOR_MASK);
     1.6      
     1.7 -    // being in check does not "block" the king, so don't test it here
     1.8 +    /* being in check does not "block" the king, so don't test it here */
     1.9      _Bool blocked = 0;
    1.10      
    1.11 -    // just test, if castling move is blocked
    1.12 +    /* just test, if castling move is blocked */
    1.13      if (abs(move->tofile - move->fromfile) == 2) {
    1.14          if (move->tofile == fileidx('c')) {
    1.15              blocked |= gamestate->board[move->torow][fileidx('b')];

mercurial