Esempio n. 1
0
    def get_action(self, board: Board):
        self.seq_len = board.n_in_row
        self.width = board.width
        self.height = board.height
        square_state, availables, current_player = board.current_configuration_minmax(
        )
        minimax_output = self.MaxValue(square_state, availables, 0,
                                       current_player)
        best_action = minimax_output[1]

        return best_action