]> git.cworth.org Git - ttt/blobdiff - src/ttt-board.h
2005-12-02 Richard D. Worth <richard@theworths.org>
[ttt] / src / ttt-board.h
index 7f9c92dd1ea365fed55ff1082c0821ccf9e5666a..b04d4b3870116240421ab23dec08b9c7b38aec1e 100644 (file)
 #ifndef _TTT_BOARD_H_
 #define _TTT_BOARD_H_
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include "ttt.h"
 
 #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