]> git.cworth.org Git - ttt/blob - src/test-board.c
Moved ttt_board_make_move to ttt-board.c with comment added and prototype in ttt...
[ttt] / src / test-board.c
1 /* Test ttt-board.c */
2
3 #include "ttt-board.h"
4
5 int
6 main (void)
7 {
8     ttt_board_t board;
9     int m;
10     
11     ttt_board_init (&board);
12     
13     printf ("This is the board \"");
14     ttt_board_write (&board, stdout);
15     printf ("\"\n");
16     
17     printf ("Make a move");
18     m = getchar() - '0';
19     ttt_board_make_move (&board, m);
20
21     printf ("This is the board \"");
22     ttt_board_write (&board, stdout);
23     printf ("\"\n");
24
25     return 0;
26 }