Exemplo n.º 1
0
 def __init__(self, side: Side, board_position: BoardPosition,
              filename: str, **kwargs):
     center_x, center_y = board_position.get_center()
     kwargs.pop("center_x", None)
     kwargs.pop("center_y", None)
     super().__init__(filename,
                      center_x=center_x,
                      center_y=center_y,
                      **kwargs)
     self.side = side
     self.board_position = board_position
     self.letter = ""
Exemplo n.º 2
0
 def set_board_position(self, board_position: BoardPosition):
     self.center_x, self.center_y = board_position.get_center()
     self.board_position = board_position