diff --git a/tic_tac_toe.py b/tic_tac_toe.py index d55bfed..3a61695 100644 --- a/tic_tac_toe.py +++ b/tic_tac_toe.py @@ -3,10 +3,8 @@ #a = {} def update_board(board, move, player): - if board[move] == 'X' or board[move] == 'O': + if move not in board or board[move] in ['X', 'O']: return False - #a[move] = move - board[move] = player return True def check_winner(board):