X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Fttt-board.h;h=0b7723d2108b7aca712ade450288cdfd46269653;hb=9474c798f05c4497d81941730f0200e5468a78f7;hp=281db32ce1bd4f96294d47d72237f15f13ec818c;hpb=f4c1cfa38a61462efccf86ba37311b44dca3f1cc;p=ttt diff --git a/src/ttt-board.h b/src/ttt-board.h index 281db32..0b7723d 100644 --- a/src/ttt-board.h +++ b/src/ttt-board.h @@ -35,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 @@ -53,6 +54,9 @@ ttt_board_write (ttt_board_t *board, FILE *file); ttt_error_t ttt_board_make_move (ttt_board_t *board, int move); +int +ttt_board_is_won (ttt_board_t *board); + #endif