Skip to content

Environment stuck in a state of Zork1 #53

@wu-qing-157

Description

@wu-qing-157

The environment get stuck when trying to get_valid_actions() after loading this state and applying step('put sack in egg').

The state is attached by a pickle file state.pickle.zip, and the following code can reproduce the problem.

import jericho
import pickle

env = jericho.FrotzEnv('zork1.z5')
with open('state.pickle', 'rb') as f:
    state = pickle.load(f)
env.set_state(state)

env.step('put sack in egg')
env.get_valid_actions() # stuck here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions