Skip to content

Commit 4a11510

Browse files
committed
fix
1 parent e37fe78 commit 4a11510

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tic_tak_toe.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import random
99
import time
10-
10+
from typing import List, Tuple
1111
import numpy as np
1212

1313

@@ -20,7 +20,7 @@ def create_board() -> np.ndarray:
2020
return np.array([[0, 0, 0], [0, 0, 0], [0, 0, 0]])
2121

2222

23-
def possibilities(board: np.ndarray) -> list[tuple[int, int]]:
23+
def possibilities(board: np.ndarray) -> List[Tuple[int, int]]:
2424
"""Find all empty positions on the board.
2525
2626
Args:
@@ -29,7 +29,7 @@ def possibilities(board: np.ndarray) -> list[tuple[int, int]]:
2929
Returns:
3030
List of (row, column) tuples where the board has a zero (empty).
3131
"""
32-
empty_positions: list[tuple[int, int]] = []
32+
empty_positions: List[Tuple[int, int]] = []
3333
for row in range(len(board)):
3434
for col in range(len(board[row])):
3535
if board[row, col] == 0:

0 commit comments

Comments
 (0)