X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Fttt-board.h;h=8983568731520cb7d9e9028a8f467df482b03055;hb=7768c01e9aeec334dd3d5851fc2d1298317060dc;hp=b04d4b3870116240421ab23dec08b9c7b38aec1e;hpb=b95a33abda8faac3638691dde70de0d59fadb30f;p=ttt diff --git a/src/ttt-board.h b/src/ttt-board.h index b04d4b3..8983568 100644 --- a/src/ttt-board.h +++ b/src/ttt-board.h @@ -23,6 +23,7 @@ #define _TTT_BOARD_H_ #include "ttt.h" +#include "ttt-error.h" #define TTT_BOARD_MAX_CELLS 9 @@ -34,6 +35,7 @@ typedef enum { typedef struct _ttt_board { ttt_cell_t cells[TTT_BOARD_MAX_CELLS]; + ttt_cell_t current_player; } ttt_board_t; void @@ -49,5 +51,12 @@ ttt_board_to_string (ttt_board_t *board); void ttt_board_write (ttt_board_t *board, FILE *file); +ttt_error_t +ttt_board_make_move (ttt_board_t *board, int move); + +ttt_cell_t +ttt_board_is_won (ttt_board_t *board); + #endif +