X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Ftest-board.c;h=d4abb29be4df89d64f40ac86f1a5c71dee8e342f;hp=d36b36de443a80331a10a5e1ef0df8c48d090a4f;hb=64c557a29553e0d4235f95e10bb943533aa70b02;hpb=b95a33abda8faac3638691dde70de0d59fadb30f diff --git a/src/test-board.c b/src/test-board.c index d36b36d..d4abb29 100644 --- a/src/test-board.c +++ b/src/test-board.c @@ -6,8 +6,17 @@ int main (void) { ttt_board_t board; - + int m; + ttt_board_init (&board); + + printf ("This is the board \""); + ttt_board_write (&board, stdout); + printf ("\"\n"); + + printf ("Make a move"); + m = getchar() - '0'; + ttt_board_make_move (&board, m); printf ("This is the board \""); ttt_board_write (&board, stdout);