X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-board.c;h=9a8d719f95e9a173bc76cfd14d93c1832008a195;hp=9e9db9889394a5b719aa1cba68a8b92abf66ec30;hb=75d32f38216f0d23936f62f85d3a1e45b07d543c;hpb=cce891bb05118330ca609ac989491ad8a2fa7f71 diff --git a/src/ttt-board.c b/src/ttt-board.c index 9e9db98..9a8d719 100644 --- a/src/ttt-board.c +++ b/src/ttt-board.c @@ -25,7 +25,10 @@ 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.