src.dcss.agent.simpleGR
Module Contents
Classes
Generic enumeration. |
|
Agent that uses fast downward to solve planning problems to explore a floor. |
Attributes
- class src.dcss.agent.simpleGR.Goal
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- EXPLORE = 1
- ATTACK = 2
- RETREAT = 3
- COLLECT_ITEMS = 4
- HEAL = 5
- class src.dcss.agent.simpleGR.SimpleGRAgent
Bases:
dcss.agent.base.BaseAgent
Agent that uses fast downward to solve planning problems to explore a floor.
- pddl_domain_file = ''
- _remove_old_state_files()
- get_pddl_state_filename()
- process_gamestate_via_cells()
- get_random_nonvisited_nonwall_playerat_goal()
- get_item_goal()
This picks the first available potion.
- 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).
- update_pddl_objs_and_facts()
- 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
- goal_satisified()
- get_random_simple_action()
- get_action(gamestate: dcss.state.game.GameState)
- src.dcss.agent.simpleGR.my_config