Spaces:
Runtime error
Runtime error
valentin urena
commited on
Update chess_board.py
Browse files- chess_board.py +1 -1
chess_board.py
CHANGED
|
@@ -77,7 +77,7 @@ class Game:
|
|
| 77 |
self.board.push(update)
|
| 78 |
# self.display_board()
|
| 79 |
self.sequence.append(move)
|
| 80 |
-
self.arrow = chess.svg.Arrow(
|
| 81 |
return True
|
| 82 |
except:
|
| 83 |
print(f"Invalid move '{move}'. Use algebraic notation (e.g., 'e4', 'Nf3', 'Bxc4') or ask Gemma for help.")
|
|
|
|
| 77 |
self.board.push(update)
|
| 78 |
# self.display_board()
|
| 79 |
self.sequence.append(move)
|
| 80 |
+
self.arrow = chess.svg.Arrow(update.from_square, update.to_square, color="#0000cccc")
|
| 81 |
return True
|
| 82 |
except:
|
| 83 |
print(f"Invalid move '{move}'. Use algebraic notation (e.g., 'e4', 'Nf3', 'Bxc4') or ask Gemma for help.")
|