import pickle


def load_pickle_files(path='Data'):
    """
    Loads the pickle files with the prepared Data
    :param path: path to the pickle files
    :return: np.arrays of the prepared data
    """
    with open(f'{path}/champion.pickle', 'rb') as file_champion, open(f'{path}/enemy.pickle', 'rb') as file_enemies, \
            open(f'{path}/spells.pickle', 'rb') as file_spells, open(f'{path}/items.pickle', 'rb') as file_items, open(
            f'{path}/stats.pickle', 'rb') as file_stats, open(f'{path}/shoes.pickle', 'rb') as file_shoes:
        x_champion, x_enemies, x_spells = pickle.load(file_champion), pickle.load(file_enemies), pickle.load(file_spells)
        x_stats, y_items, y_items_shoes = pickle.load(file_stats), pickle.load(file_items), pickle.load(file_shoes)
    print('Files Loaded')
    return x_champion, x_enemies, x_spells, x_stats, y_items, y_items_shoes