Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The interface does not provide a way to resolve all ambiguity #89

Open
exarkun opened this issue Nov 1, 2020 · 1 comment
Open

The interface does not provide a way to resolve all ambiguity #89

exarkun opened this issue Nov 1, 2020 · 1 comment

Comments

@exarkun
Copy link
Member

exarkun commented Nov 1, 2020

If two things have exactly the same name and aliases then there is no input that can be entered into the text interface which will resolve the ambiguity and allow an action to proceed against one or the other of them.

Here's a simple world which demonstrates the situation:

from imaginary.objects import Thing, Container
from imaginary.world import ImaginaryWorld

def world(store):
    place = Thing(
        store=store,
        name=u"place",
    )
    Container.createFor(place, capacity=1000)
    world = ImaginaryWorld(
        store=store,
        origin=place,
    )
    protagonist = world.create(u"protagonist", location=place)
    for i in range(2):
        Thing(store=store, name=u"thing", location=place)
    return world

And here's a sample transcript that results:

> look
[ place ]
It contains a thing and a thing.
> take thing
Could you be more specific?  When you said 'thing', did you mean: a thing, or a thing?
@exarkun
Copy link
Member Author

exarkun commented Nov 1, 2020

Seemingly the same problem manifests slightly differently using the look action:

> look at thing
Could you be more specific?  When you said 'thing', did you mean: [ thing ]
, or [ thing ]
?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant