X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-board.c;fp=src%2Fttt-board.c;h=8c34b3e0074165300f35958e73be7637bde7081f;hp=92391ebd2d7db4243ed14f76ff7253fa2c9a963f;hb=e9d5cb082314c9a5f875519cbde6b5ff7ecadd41;hpb=9a3347e8aa9db1618fc0df92103e84d34413ba11 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;