From 77d0273e674bdda5e1f3836448f1eb5791d3ee41 Mon Sep 17 00:00:00 2001 From: Coding4Hours <138321129+Coding4Hours@users.noreply.github.com> Date: Tue, 9 Jul 2024 10:30:22 -0700 Subject: [PATCH] Update tic_tac_toe.py --- tic_tac_toe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tic_tac_toe.py b/tic_tac_toe.py index e710e3d..db4871b 100644 --- a/tic_tac_toe.py +++ b/tic_tac_toe.py @@ -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'