1.1 --- a/src/chess/rules.h Wed Jun 11 15:38:01 2014 +0200 1.2 +++ b/src/chess/rules.h Wed Jun 11 16:54:20 2014 +0200 1.3 @@ -90,6 +90,7 @@ 1.4 uint8_t capture; 1.5 struct movetimeval timestamp; 1.6 struct movetimeval movetime; 1.7 + char string[8]; 1.8 } Move; 1.9 1.10 typedef struct MoveList MoveList; 1.11 @@ -140,6 +141,10 @@ 1.12 #define fileidx_s(c) (isfile(c)?fileidx(c):POS_UNSPECIFIED) 1.13 #define rowidx_s(c) (isrow(c)?rowidx(c):POS_UNSPECIFIED) 1.14 1.15 +/** 1.16 + * Cleans up a game state and frees the memory for the movement list. 1.17 + * @param gamestate the game state to clean up 1.18 + */ 1.19 void gamestate_cleanup(GameState *gamestate); 1.20 1.21 /**