Spaces:
Runtime error
Runtime error
valentin urena
commited on
Update chess_board.py
Browse files- chess_board.py +4 -1
chess_board.py
CHANGED
|
@@ -63,7 +63,10 @@ class Game:
|
|
| 63 |
def display_board(self):
|
| 64 |
# clear_output(wait=True)
|
| 65 |
# display(SVG(chess.svg.board(board=self.board)))
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
| 67 |
# return svg2png(bytestring=board_svg)
|
| 68 |
return board_svg
|
| 69 |
|
|
|
|
| 63 |
def display_board(self):
|
| 64 |
# clear_output(wait=True)
|
| 65 |
# display(SVG(chess.svg.board(board=self.board)))
|
| 66 |
+
if self.arrow:
|
| 67 |
+
board_svg = chess.svg.board(board=self.board, arrows=[self.arrow])
|
| 68 |
+
else:
|
| 69 |
+
board_svg = chess.svg.board(board=self.board)
|
| 70 |
# return svg2png(bytestring=board_svg)
|
| 71 |
return board_svg
|
| 72 |
|