jinc0930 / Clue

A game
2 stars 0 forks source link

Accept both partial and full inputs from the user #17

Closed mishimalisa closed 2 years ago

mishimalisa commented 2 years ago

Examples:

All bellow should be accepted Asking only when necessary

take
  What item do you like to take?
rifle
  You took rifle
take rifle
  You took rifle
take r
  You took rifle
take this
  You took rifle
jinc0930 commented 2 years ago

clue has same issue

jinc0930 commented 2 years ago

take command does not allow taking of two word items

jinc0930 commented 2 years ago

this works now?

mishimalisa commented 2 years ago

if you type including the item: take poison bottle it works. but if you type only take it says item doesn't exist, instead of asking what item.

Is this the intended behavior?