Skip to content

Commit

Permalink
Update tic_tac_toe.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Coding4Hours authored Jul 9, 2024
1 parent 922eec9 commit 00a1554
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tic_tac_toe.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ def main(move):

current_player = 'X' if content.endswith("It's X's turn to play.") else 'O'
print(board)
board = json.loads('stuff.json').board
with open('stuff.json', 'r') as file:
data = json.load(file)
board = data.board
if update_board(board, move, current_player):
winner = check_winner(board)
if winner:
Expand Down

0 comments on commit 00a1554

Please sign in to comment.