You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tic-tac-toe/code.py
-39
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,8 @@ def create_board():
4
4
x=np.zeros((3,3))
5
5
returnx
6
6
7
-
8
7
board=create_board()
9
8
10
-
11
9
defpossibilities(board):
12
10
y=np.where(board==0 ) #it gives the indices wherever there are zeros in the form of 2 seperate arrays in a tuple. (array([0, 0, 1, 1, 1, 2, 2, 2]), array([1, 2, 0, 1, 2, 0, 1, 2]))
0 commit comments