X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-board.h;h=c589a7716f211bfbd849dc4110393cc03d7a73ac;hp=a4244c0b30ab595e73e509a8328db76adab2992c;hb=e26c0a51dea5e5ade3bdf081f29500a0fe3944d3;hpb=75d32f38216f0d23936f62f85d3a1e45b07d543c diff --git a/src/ttt-board.h b/src/ttt-board.h index a4244c0..c589a77 100644 --- a/src/ttt-board.h +++ b/src/ttt-board.h @@ -22,11 +22,26 @@ #ifndef _TTT_BOARD_H_ #define _TTT_BOARD_H_ +#include "ttt.h" + #define TTT_BOARD_MAX_CELLS 9 -typedef struct _ttt_board { - int cells[TTT_BOARD_MAX_CELLS]; +typedef struct ttt_board { + int cells[TTT_BOARD_MAX_CELLS]; } 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