5 ttt_cell_t ttt_test_board_is_won (ttt_board_t *board);
13 ttt_board_init (&board);
15 for (i = 0; i <= 8; i++)
17 printf ("This is the board \"");
18 ttt_board_write (&board, stdout);
21 printf ("Make a move \n");
24 printf ("getchar returned a numeric value of %d which is character '%c'\n", m, m);
26 ttt_board_make_move (&board, m);
27 ttt_board_is_won (&board);
28 if (ttt_board_is_won (&board) == TTT_CELL_X)
33 else if (ttt_board_is_won (&board) == TTT_CELL_O)
40 printf ("This is the board \"");
41 ttt_board_write (&board, stdout);