Spaces:
Runtime error
Runtime error
valentin urena
commited on
Update chess_board.py
Browse files- chess_board.py +2 -2
chess_board.py
CHANGED
|
@@ -75,7 +75,7 @@ class Game:
|
|
| 75 |
return True
|
| 76 |
except:
|
| 77 |
print(f"Invalid move '{move}'. Use algebraic notation (e.g., 'e4', 'Nf3', 'Bxc4') or ask Gemma for help.")
|
| 78 |
-
|
| 79 |
|
| 80 |
def reset_board(self):
|
| 81 |
self.board = chess.Board()
|
|
@@ -90,7 +90,7 @@ class Game:
|
|
| 90 |
yield self.gemma_moves()
|
| 91 |
else:
|
| 92 |
print("Try again")
|
| 93 |
-
return self.display_board()
|
| 94 |
|
| 95 |
def main():
|
| 96 |
end_game = False # Change this to False
|
|
|
|
| 75 |
return True
|
| 76 |
except:
|
| 77 |
print(f"Invalid move '{move}'. Use algebraic notation (e.g., 'e4', 'Nf3', 'Bxc4') or ask Gemma for help.")
|
| 78 |
+
return self.display_board()
|
| 79 |
|
| 80 |
def reset_board(self):
|
| 81 |
self.board = chess.Board()
|
|
|
|
| 90 |
yield self.gemma_moves()
|
| 91 |
else:
|
| 92 |
print("Try again")
|
| 93 |
+
# return self.display_board()
|
| 94 |
|
| 95 |
def main():
|
| 96 |
end_game = False # Change this to False
|