microsoft / jericho

A learning environment for man-made Interactive Fiction games.
GNU General Public License v2.0
253 stars 42 forks source link

How to get possible actions at each step? #59

Closed IssamLaradji closed 2 years ago

IssamLaradji commented 2 years ago

How do I get the possible actions at each step? the admissible_actions is None when I use this object class

infos = EnvInfos(
            inventory=True,
            description=True,
            admissible_commands=True,
            intermediate_reward=True,
            command_templates=True,
            score=True,
            max_score=True,
            extras=["walkthrough"],
        )
mhauskn commented 2 years ago

Please refer to the quickstart at https://jericho-py.readthedocs.io/en/latest/tutorial_quick.html#getting-valid-actions

MarcCote commented 2 years ago

@IssamLaradji the EnvInfos.admissible_commands only works for games generated with TextWorld. Is that your case?

MarcCote commented 2 years ago

Hi @IssamLaradji any progress on this?

IssamLaradji commented 2 years ago

Sorry for the late reply! it worked when we used FrostzEnv. Cheers.