src.dcss.agent.fastdownwardplanningagent

Module Contents

Classes

FastDownwardPlanningBaseAgent

Agent that uses fast downward to solve planning problems to explore a floor.

Functions

setup_logger(logger)

Attributes

my_config

class src.dcss.agent.fastdownwardplanningagent.FastDownwardPlanningBaseAgent

Bases: dcss.agent.base.BaseAgent

Agent that uses fast downward to solve planning problems to explore a floor.

pddl_domain_file = ''
process_gamestate_via_cells()
get_full_health_goal()
get_nearest_item_pickup_goal()
get_random_nonvisited_nonwall_playerat_goal()
get_first_monster_goal()

This picks a the first available monster and chooses that monsters cell to be the goal. In the process of trying to move into the monsters cell, the agent should end up attacking the monster, because movement and attacking are the same thing (for melee).

generate_current_state_pddl(goals)
get_plan_from_fast_downward(goals)
equip_best_items()

Calling this will have the agent evaluate the best items

read_scrolls()

The agent will read all scrolls in its inventory

can_create_plan_to_reach_next_floor()

Returns a plan to go to the next floor

goal_selection()

Returns the goal the agent should pursue right now

In some cases, deciding to reach a goal may depend on whether that goal is even reachable via planning. Since we would have generated the plan anyway, let’s return it and save some work

get_random_simple_action()
get_action(gamestate: dcss.state.game.GameState)
src.dcss.agent.fastdownwardplanningagent.setup_logger(logger)
src.dcss.agent.fastdownwardplanningagent.my_config