]> git.cworth.org Git - ttt/blobdiff - src/ttt-board.c
2005-11-11 Carl Worth <cworth@pippin.local>
[ttt] / src / ttt-board.c
index 9e9db9889394a5b719aa1cba68a8b92abf66ec30..7627b4d699e3ab5be18267bb21cffb223bcd1f64 100644 (file)
 void
 ttt_board_init (ttt_board_t *board)
 {
 void
 ttt_board_init (ttt_board_t *board)
 {
-    /* XXX: NYI */
+  int i;
+  for (i = 0; i < TTT_BOARD_MAX_CELLS; i++)
+    {
+      board->cells[i] = 0;
+    }
 }
 
 /* Initialize a board from its string representation.
 }
 
 /* Initialize a board from its string representation.
@@ -51,6 +55,7 @@ char *
 ttt_board_to_string (ttt_board_t *board)
 {
     /* XXX: NYI */
 ttt_board_to_string (ttt_board_t *board)
 {
     /* XXX: NYI */
+    return NULL;
 }
 
 /* Write a string representation of a board to the provided file.
 }
 
 /* Write a string representation of a board to the provided file.