]> git.cworth.org Git - ttt/blobdiff - src/ttt-board.h
2005-11-28 Kevin Worth <kevin@theworths.org>
[ttt] / src / ttt-board.h
index e9498ccca87cfc4b4d7e08bd1f90b9a1e4c4d8df..b04d4b3870116240421ab23dec08b9c7b38aec1e 100644 (file)
 
 #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);