src/chess/fen.h

changeset 133
c58ae152733e
parent 132
5762f2b5f87a
equal deleted inserted replaced
132:5762f2b5f87a 133:c58ae152733e
35 #ifdef __cplusplus 35 #ifdef __cplusplus
36 extern "C" { 36 extern "C" {
37 #endif 37 #endif
38 38
39 /** 39 /**
40 * A generous upper bound on the length of a FEN string.
41 *
42 * This includes a terminating null character.
43 */
44 #define FEN_MAX_LENGTH 96
45
46 /**
40 * Computes the FEN representation of the current game state. 47 * Computes the FEN representation of the current game state.
41 * 48 *
42 * @param str a buffer large enough to hold the FEN string 49 * @param str a buffer large enough to hold the FEN string
43 * @param gamestate the current game state 50 * @param gamestate the current game state
44 */ 51 */

mercurial