src/chess/rules.h

changeset 27
efeb98bc69c9
parent 26
e0a76ee1bb2b
child 28
0c1371488d87
     1.1 --- a/src/chess/rules.h	Tue Apr 01 14:04:00 2014 +0200
     1.2 +++ b/src/chess/rules.h	Thu Apr 03 16:07:04 2014 +0200
     1.3 @@ -77,8 +77,6 @@
     1.4      uint8_t torow;
     1.5      uint8_t promotion;
     1.6      _Bool check;
     1.7 -    _Bool checkmate;
     1.8 -    _Bool stalemate; // TODO: find a better place for checkmate and stalemate
     1.9      _Bool capture;
    1.10  } Move;
    1.11  
    1.12 @@ -94,6 +92,8 @@
    1.13      uint8_t mycolor;
    1.14      MoveList* movelist;
    1.15      MoveList* lastmove;
    1.16 +    _Bool checkmate;
    1.17 +    _Bool stalemate;
    1.18  } GameState;
    1.19  
    1.20  #define opponent_color(color) ((color)==WHITE?BLACK:WHITE)

mercurial