From e9d5cb082314c9a5f875519cbde6b5ff7ecadd41 Mon Sep 17 00:00:00 2001 From: Kevin Worth Date: Tue, 13 Dec 2005 20:40:23 +0000 Subject: [PATCH 1/1] Fixed board_make_move to use TTT_CELL_EMPTY --- src/ttt-board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.0