]> git.cworth.org Git - ttt/blobdiff - src/ttt-board.c
* /games/tictactoe/src/ttt-board.c, ttt-board.h: Implemented board_init
[ttt] / src / ttt-board.c
index 9e9db9889394a5b719aa1cba68a8b92abf66ec30..9a8d719f95e9a173bc76cfd14d93c1832008a195 100644 (file)
 void
 ttt_board_init (ttt_board_t *board)
 {
-    /* XXX: NYI */
+       for (int i; i < TTT_BOARD_MAX_CELLS; i++)
+       {
+               &board->cells[i] = 0;
+       }
 }
 
 /* Initialize a board from its string representation.