Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,8 +38,7 @@ def main():
|
|
38 |
|
39 |
|
40 |
def ia_move(board,game_over,ia):
|
41 |
-
|
42 |
-
board.print_game()
|
43 |
if int(game_over) == -1:
|
44 |
state_board = board.matriz.copy()
|
45 |
avaible_moves = board.get_avaible_moves()
|
@@ -73,9 +72,6 @@ def main():
|
|
73 |
retorn_buttons.append(gr.Number(value=ia, visible=False))
|
74 |
retorn_buttons.append(gr.Number(value=usr, visible=False))
|
75 |
retorn_buttons.append(board)
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
else:
|
80 |
retorn_buttons = ia_move(board,game_over,ia)
|
81 |
retorn_buttons.insert(-1,gr.Number(value=-1, visible=False))
|
|
|
38 |
|
39 |
|
40 |
def ia_move(board,game_over,ia):
|
41 |
+
|
|
|
42 |
if int(game_over) == -1:
|
43 |
state_board = board.matriz.copy()
|
44 |
avaible_moves = board.get_avaible_moves()
|
|
|
72 |
retorn_buttons.append(gr.Number(value=ia, visible=False))
|
73 |
retorn_buttons.append(gr.Number(value=usr, visible=False))
|
74 |
retorn_buttons.append(board)
|
|
|
|
|
|
|
75 |
else:
|
76 |
retorn_buttons = ia_move(board,game_over,ia)
|
77 |
retorn_buttons.insert(-1,gr.Number(value=-1, visible=False))
|