src/chess/pgn.h

changeset 127
7258a46bf5ae
parent 117
ee539a9691f0
equal deleted inserted replaced
126:d58b2abdd330 127:7258a46bf5ae
41 int read_pgn(FILE *stream, GameState *gamestate, GameInfo *gameinfo); 41 int read_pgn(FILE *stream, GameState *gamestate, GameInfo *gameinfo);
42 void write_pgn(FILE* stream, GameState *gamestate, GameInfo *gameinfo, 42 void write_pgn(FILE* stream, GameState *gamestate, GameInfo *gameinfo,
43 bool export_comments); 43 bool export_comments);
44 void compute_fen(char *str, GameState *gamestate); 44 void compute_fen(char *str, GameState *gamestate);
45 45
46 const char *pgn_player_name(GameState *gamestate, uint8_t color);
47
46 const char* pgn_error_str(int code); 48 const char* pgn_error_str(int code);
47 49
48 #ifdef __cplusplus 50 #ifdef __cplusplus
49 } 51 }
50 #endif 52 #endif

mercurial