Skip to content

Conversation

@MarcCote
Copy link
Contributor

This PR is the first of a series which will bring support to generate games with multiple subquests. It supersedes part of #30 and the remaining modification will be added in subsequent PRs.

DependencyTree now supports more than one root.
ActionDependencyTree has a better heuristic to be flattened, i.e. building a policy from the dependency tree.
GameProgression can now track multiple quests at the same time.
QuestProgression now has a better way of compressing its winning policy (i.e. a sequence of actions that leads to the quest completion).


def __init__(self, element_type=DependencyTreeElement):
self.root = None
def __init__(self, element_type: DependencyTreeElement = DependencyTreeElement, trees: Iterable["DependencyTree"] = []):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be

element_type: type = DependencyTreeElement

I think

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh right. Good catch.

@tavianator tavianator merged commit c77a105 into microsoft:master Sep 25, 2018
@MarcCote MarcCote deleted the enh_dependency_tree branch September 26, 2018 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants