Exemple #1
0
 def move_figure(self, a, b, c, d):
     figure = self.board[a][b].figure
     self.board[a][b] = Position(a, b)
     self.board[c][d].add_figure(figure)
     self.last_move = figure.player
     king = Validator.found_king_coordinates(copy.deepcopy(self.board), copy.deepcopy(self.last_move))
     self.check_game_status(king[0], king[1])