From: Kevin Worth Date: Tue, 13 Dec 2005 20:40:23 +0000 (+0000) Subject: Fixed board_make_move to use TTT_CELL_EMPTY X-Git-Url: https://git.cworth.org/git?p=ttt;a=commitdiff_plain;h=e9d5cb082314c9a5f875519cbde6b5ff7ecadd41;hp=9a3347e8aa9db1618fc0df92103e84d34413ba11 Fixed board_make_move to use TTT_CELL_EMPTY --- diff --git a/src/ttt-board.c b/src/ttt-board.c index 92391eb..8c34b3e 100644 --- a/src/ttt-board.c +++ b/src/ttt-board.c @@ -104,7 +104,7 @@ ttt_board_write (ttt_board_t *board, FILE *file) ttt_error_t ttt_board_make_move (ttt_board_t *board, int move) { - if (board->cells[move] != '_') + if (board->cells[move] != TTT_CELL_EMPTY) return TTT_ERROR_NOT_VALID_MOVE; board->cells[move] = board->current_player;