]> git.cworth.org Git - ttt/blobdiff - src/ttt-board.h
Implemented current_player into board and O's into board_make_move
[ttt] / src / ttt-board.h
index c240ef3398d8fefae891f01ec6bb376bc5054eff..c75c168960f9ebac1e49dfc3f5c0863b82af0cf6 100644 (file)
@@ -23,6 +23,7 @@
 #define _TTT_BOARD_H_
 
 #include "ttt.h"
+#include "ttt-error.h"
 
 #define TTT_BOARD_MAX_CELLS 9
 
@@ -34,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
@@ -49,9 +51,9 @@ ttt_board_to_string (ttt_board_t *board);
 void
 ttt_board_write (ttt_board_t *board, FILE *file);
 
-int 
+ttt_error_t
 ttt_board_make_move (ttt_board_t *board, int move);
 
-
 #endif
 
+