mvevans89 / woRdle

MIT License
1 stars 0 forks source link

Entering blank answer ends process #6

Open rlrichards opened 2 years ago

rlrichards commented 2 years ago

Entering no text for a guess stops the process and returns this error:

Error in wrong.location + right.location : non-numeric argument to binary operator

mvevans89 commented 2 years ago

I think this is somehow related to #2 because there is no check for word length. i think it may require some kind of nested while situation to work together with the spell check step

mvevans89 commented 2 years ago

Related to word length but causes an error before our word length check. May be able to add something directly to the readline call? Either way, solution lies in the guess_fn

mvevans89 commented 2 years ago

Leaving a note for my future self (or whoever tries to fix this): probably best way to fix this, and avoid future problems is move the checks to directly after the readline call in the guess_fn and do the reprompting within that function