Environment stuck in a state of Zork1
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with the reproduction in the issue: load the attached state.pickle, call env.step('put sack in egg'), and then run env.get_valid_actions(). Investigate the environment state handling around that sequence and verify that get_valid_actions() returns instead of remaining stuck.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- C
- Stars
- 337
- Forks
- 48
- Avg merge
- 9h 5m
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/jericho
-
bug
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Games repo link Open
Difficulty 1/5 Under an hour Newbie friendliness 15/100
All issues in microsoft/jericho
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
hapostgres/pg_auto_failover#1190 ·
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
P3 sonic-vpp
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sonic-net/sonic-buildimage#29662 ·