Spaces:
Running
Running
update app.py
Browse files
app.py
CHANGED
|
@@ -102,7 +102,7 @@ def get_move(board_text, player=None):
|
|
| 102 |
visits, _ = searcher.search_with_time_budget(game, 1.0)
|
| 103 |
|
| 104 |
# Debug: show how many legal moves and visits
|
| 105 |
-
legal_moves = list(game.
|
| 106 |
print(f"[DEBUG] legal moves count: {len(legal_moves)}")
|
| 107 |
if legal_moves:
|
| 108 |
print(f"[DEBUG] sample legal move: {legal_moves[0] if len(legal_moves) > 0 else None}")
|
|
|
|
| 102 |
visits, _ = searcher.search_with_time_budget(game, 1.0)
|
| 103 |
|
| 104 |
# Debug: show how many legal moves and visits
|
| 105 |
+
legal_moves = list(game.get_legal_moves())
|
| 106 |
print(f"[DEBUG] legal moves count: {len(legal_moves)}")
|
| 107 |
if legal_moves:
|
| 108 |
print(f"[DEBUG] sample legal move: {legal_moves[0] if len(legal_moves) > 0 else None}")
|