Steps with multiple commands in them will crash the gym

Open
#366 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Domain
backend

Research direction

Reproduce the failure by calling env.step with a single argument containing multiple Inform commands, then trace the exception in Inform7Data._gather_infos. The issue is done when both dotted and THEN-separated command sequences no longer crash the gym and are handled correctly.

Written by the indexing model from the issue text.

Description

Inform's parser allows multiple commands to be expressed on a single line, e.g. "GO NORTH. GO EAST." or "DROP PEPPER THEN GET KNIFE". Calling env.step with such an argument will cause an exception in Inform7Data._gather_infos.

Dominant language
Jupyter Notebook
Stars
1.4k
Forks
207
Avg merge
8d 22h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/TextWorld

All issues in microsoft/TextWorld

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.