X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Fttt-board.h;h=b04d4b3870116240421ab23dec08b9c7b38aec1e;hb=747a73feb09523f99f5fb65dcb048ba38cc6eeb6;hp=c589a7716f211bfbd849dc4110393cc03d7a73ac;hpb=f04f93bc811d1d2f36cf37f4a9e012e8877c744b;p=ttt diff --git a/src/ttt-board.h b/src/ttt-board.h index c589a77..b04d4b3 100644 --- a/src/ttt-board.h +++ b/src/ttt-board.h @@ -26,8 +26,14 @@ #define TTT_BOARD_MAX_CELLS 9 -typedef struct ttt_board { - int cells[TTT_BOARD_MAX_CELLS]; +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