guess-my-word icon indicating copy to clipboard operation
guess-my-word copied to clipboard

Press up or down arrows to select previous/next word

Open CosmicBara opened this issue 5 years ago • 4 comments

Sometimes when guessing a word, I just want to make 1 letter adjustments to words I've already guessed. It would be nice if I could press up or down to select the previous closest or next closest word, respectively, and put that word in the input box.

Imagine the CMD prompt or Powershell or pretty much any terminal interface, and you've got the idea.

CosmicBara avatar Jan 29 '20 18:01 CosmicBara

This is not a dunk on you but that kind of feels like not within the spirit of the game?

ktamas avatar Jan 30 '20 09:01 ktamas

@KTamas Is it? I guess I'm just thinking of ways to improve the user experience. I found myself pressing up/down to select previous words almost naturally, so it felt like a good extension to the base game.

CosmicBara avatar Jan 30 '20 14:01 CosmicBara

What do you think about this behavior: if there's common starting letters shared by the top and bottom words, then the input box will put those letters into the input, but selected. The idea is mainly to help folks who are a bit new to the game, but the selection would be so that if someone is typing quickly it would simply get replaced as they're typing.

For example let's say the word is before 'corn' and after 'cork', then 'cor' would show up as highlighted in the input box.

Also, I wouldn't be opposed to the up/down arrow idea, so if someone wanted to send a PR on that, that'd be cool.

hryanjones avatar Feb 05 '20 18:02 hryanjones

@hryanjones For your suggestion, I assume it would kick in once the word prior and after match at least 1 character, correct? So an example:

bad
_____ -> nothing would be input
dead
bad
b____ -> b matches both "bad" and "brain", so it gets auto-filled
brain
bad
ba____ -> ba now matches both words, so gets auto-filled
baron 

I like this idea, and it would definitely save some time!

CosmicBara avatar Feb 05 '20 19:02 CosmicBara