Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

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

Nobody has claimed this yet.

Assessment

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

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.

Description

enhancement

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!

Dominant language
Jupyter Notebook
Stars
1.4k
Forks
207
PR merge metrics
No merged PRs in 30d

Getting set up

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 Game Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.