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 b8b64b5 commit 77d0273
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tic_tac_toe.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def main(move):
else:
next_player = 'O' if current_player == 'X' else 'X'
status = f"It's {next_player}'s turn to play."
with open('stuff.json', r) as file:

with open('stuff.json', 'r') as file:
a = json.load(file)

a['turn'] = 'O' if current_player == 'X' else 'X'
Expand Down

0 comments on commit 77d0273

Please sign in to comment.