valentin urena commited on
Commit
06f7d3d
·
verified ·
1 Parent(s): 8e138a8

Update chess_board.py

Browse files
Files changed (1) hide show
  1. 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
- board_svg = chess.svg.board(board=self.board, arrows=[self.arrow])
 
 
 
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