]> git.cworth.org Git - ttt/blobdiff - 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
index d36b36de443a80331a10a5e1ef0df8c48d090a4f..d4abb29be4df89d64f40ac86f1a5c71dee8e342f 100644 (file)
@@ -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);