Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -88,9 +88,9 @@ def minimax(board, depth, is_maximizing):
|
|
88 |
def play_tic_tac_toe(evt: gr.SelectData, board, game_over):
|
89 |
|
90 |
print(f"Event = {evt}")
|
91 |
-
print(f"Index = {evt.index}")
|
92 |
|
93 |
-
if evt
|
94 |
return draw_board(board), "Invalid action! Please click on the board.", False
|
95 |
|
96 |
if game_over:
|
|
|
88 |
def play_tic_tac_toe(evt: gr.SelectData, board, game_over):
|
89 |
|
90 |
print(f"Event = {evt}")
|
91 |
+
# print(f"Index = {evt.index}")
|
92 |
|
93 |
+
if evt is None:
|
94 |
return draw_board(board), "Invalid action! Please click on the board.", False
|
95 |
|
96 |
if game_over:
|