Skip to content

Conversation

@MarcCote
Copy link
Contributor

This PR adds support for subquests/multi-quests. Here are the highlights:

  • It adds the necessary Inform7 code to give points when subquests get completed.
  • Can now track multiple quests at the same time, meaning we can still provide intermediate rewards when the agent is on the right path.
  • It adds the option to specify the quest-breadth (i.e. nb of subquests) when generating games automatically.
  • When text generation option --only-last-action is True and there is more than one subquest, the generated text objective describes each subquest's last action in order.

NB: this PR is based on top of #29.

@MarcCote MarcCote requested a review from tavianator August 29, 2018 03:03

# Load command from the generated game.
self._commands = iter(env.game.quests[0].commands)
self._commands = iter(env.game.quests[-1].commands)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I need to rethink this. It is not guaranteed the last quest will have all the commands needed to solve the whole game. It should be the case for games generated via the nonlinear chaining function but not for handcrafted games.

@MarcCote MarcCote force-pushed the subquests branch 2 times, most recently from 8db6bf2 to 96f691d Compare September 4, 2018 19:38
@MarcCote MarcCote force-pushed the subquests branch 2 times, most recently from a62c5d5 to d183e45 Compare September 18, 2018 17:10
@MarcCote
Copy link
Contributor Author

Closing this PR in favor of #42 and #43.

@MarcCote MarcCote closed this Sep 26, 2018
@MarcCote MarcCote deleted the subquests branch October 5, 2018 19:24
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.

1 participant