X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fttt-board.h;h=e9498ccca87cfc4b4d7e08bd1f90b9a1e4c4d8df;hb=add37ecc4ee6485d9f91f95f1c983abf867da2c6;hp=dd2b6eb14681ffff1f055eb1da94171e230f67ef;hpb=cce891bb05118330ca609ac989491ad8a2fa7f71;p=ttt diff --git a/src/ttt-board.h b/src/ttt-board.h index dd2b6eb..e9498cc 100644 --- a/src/ttt-board.h +++ b/src/ttt-board.h @@ -22,9 +22,24 @@ #ifndef _TTT_BOARD_H_ #define _TTT_BOARD_H_ -typedef struct _ttt_board { - /* XXX: Fill this out with appropriate fields. */ -} ttt_board_t; +#include "ttt.h" + +#define TTT_BOARD_MAX_CELLS 9 + +typedef struct _ttt_board ttt_board_t; + +void +ttt_board_init (ttt_board_t *board); + +void +ttt_board_init_from_string (ttt_board_t *board, + const char *s); + +char * +ttt_board_to_string (ttt_board_t *board); + +void +ttt_board_write (ttt_board_t *board, FILE *file); #endif