X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Ftest-board.c;h=d4abb29be4df89d64f40ac86f1a5c71dee8e342f;hp=dad0a5ed7af486042e58075fc6a76e242c39f245;hb=64c557a29553e0d4235f95e10bb943533aa70b02;hpb=a39392e936d04a4852e1118cd1c92ffd026d951d diff --git a/src/test-board.c b/src/test-board.c index dad0a5e..d4abb29 100644 --- a/src/test-board.c +++ b/src/test-board.c @@ -1,26 +1,7 @@ /* Test ttt-board.c */ -#include #include "ttt-board.h" -int ttt_board_make_move (ttt_board_t *board, int move); - -int ttt_board_make_move (ttt_board_t *board, int move) -{ - - putchar(move); - if (board->cells[move] == '_') - { - board->cells[move] = 'X'; - return(1); - } - else - { - return(0); - } -} - - int main (void) {