# send_and_receive(dir_map[direction]) # elif game_state.can_attack_monster(direction): # action_str += " Attacking monster %s..." % direction # send_and_receive(dir_map[direction]) # else: # continue if game_state.agent_just_leveled_up(): print("Woohooo we leveled up!!!!!!!!") send_input('\r') if game_state.is_agent_too_terrified(): print("FIX ME") time.sleep(10) if game_state.agent_cannot_move(): print("FIX ME") time.sleep(10) if game_state.has_agent_died(): print("******* AW MAN ... WE DIED ***********") time.sleep(1) send_input('\r') time.sleep(1) send_input('\r') time.sleep(1) send_input('\r') break if game_state.game_has_more_messages(reset=True): print("more prompt!")