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'