Skip to content

Commit cbde826

Browse files
author
basantnema31
committed
Fix SyntaxError by reverting nonlocal to global
1 parent 56a66d6 commit cbde826

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

games/Tic-Tac-Toe/Tic-Tac-Toe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def check_winner() -> Tuple[Optional[str], Optional[List[int]]]:
108108

109109
def play(i: int) -> None:
110110
"""Make a move at the given index."""
111-
nonlocal current, game_over
111+
global current, game_over
112112
if game_over or board[i]: return
113113
board[i] = current
114114
w, _ = check_winner()

0 commit comments

Comments
 (0)