microsoft / microsoft/TextWorld

Adding pattern-based propositions (like 'touchable')?

Open
#172 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hey,
How hard would it be to add a pattern based proposition such as touchable (like the native one in Inform7)? So for the simple example of taking an object instead of having to write
take/c, take/s, take for every possible location of o, one could just write touchable(o)?

I seem to remember there being talk of this, but wasn't sure what was decided in the end.

It could be really nice, and add lots of flexibility in writing new rules!

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.

Research direction

Start by reading the linked inventory.twl example and the issue's discussion of Inform 7's touchable proposition. Clarify the intended pattern-based proposition semantics and how it should replace the repeated take/c, take/s, and take rules. Done should be demonstrated with the taking-object example and documented behavior.

Written by the indexing model from the issue text.

Assessment

Domain
game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.