X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-board.h;h=b04d4b3870116240421ab23dec08b9c7b38aec1e;hp=e9498ccca87cfc4b4d7e08bd1f90b9a1e4c4d8df;hb=b95a33abda8faac3638691dde70de0d59fadb30f;hpb=add37ecc4ee6485d9f91f95f1c983abf867da2c6 diff --git a/src/ttt-board.h b/src/ttt-board.h index e9498cc..b04d4b3 100644 --- a/src/ttt-board.h +++ b/src/ttt-board.h @@ -26,7 +26,15 @@ #define TTT_BOARD_MAX_CELLS 9 -typedef struct _ttt_board ttt_board_t; +typedef enum { + TTT_CELL_EMPTY = '_', + TTT_CELL_X = 'X', + TTT_CELL_O = 'O' +} ttt_cell_t; + +typedef struct _ttt_board { + ttt_cell_t cells[TTT_BOARD_MAX_CELLS]; +} ttt_board_t; void ttt_board_init (ttt_board_t *board);