def __init__(self, *args, **kwargs): rwrd_mngr = RewardManager() rwrd_mngr.add_message_event(["You succeed in unlocking the chest"]) super().__init__(*args, des_file="chest.des", reward_manager=rwrd_mngr, **kwargs)
def __init__(self, *args, **kwargs): rwrd_mngr = RewardManager() rwrd_mngr.add_message_event(["You carefully open the chest..."]) super().__init__(*args, des_file="chest.des", reward_manager=rwrd_mngr, **kwargs)
def __init__(self, *args, des_file, **kwargs): rwrd_mngr = RewardManager() rwrd_mngr.add_message_event(levitation_msg) super().__init__(*args, des_file=des_file, reward_manager=rwrd_mngr, **kwargs)
def __init__(self, *args, **kwargs): lvl_gen = LevelGenerator(w=5, h=5, lit=True) lvl_gen.add_object("blank paper", "?") des_file = lvl_gen.get_des() reward_manager = RewardManager() reward_manager.add_message_event(["This scroll seems to be blank."]) super().__init__( *args, des_file=des_file, reward_manager=reward_manager, **kwargs )
def __init__(self, *args, **kwargs): lvl_gen = LevelGenerator(w=5, h=5, lit=True) lvl_gen.add_object("enlightenment", "/") des_file = lvl_gen.get_des() reward_manager = RewardManager() reward_manager.add_message_event(["The feeling subsides."]) # TODO change super().__init__( *args, des_file=des_file, reward_manager=reward_manager, **kwargs )
def __init__(self, *args, **kwargs): kwargs["max_episode_steps"] = kwargs.pop("max_episode_steps", 5000) reward_manager = RewardManager() reward_manager.add_message_event(["squeak"], reward=0, terminal_sufficient=True, terminal_required=True) reward_manager.add_kill_event("grid bug", terminal_sufficient=True, terminal_required=True) super().__init__(*args, des_file="memory.des", reward_manager=reward_manager, **kwargs)