ryanb / ruby-warrior

Game written in Ruby for learning Ruby.
MIT License
3.83k stars 838 forks source link

Wrong input parameter doesn't prompt correct input #70

Open stefanlance opened 11 years ago

stefanlance commented 11 years ago

For example, if I run rubywarrior and I'm prompted to choose a profile, if I enter q rather than 1 or 2, I'm not told that q is invalid input. See the image below.

image

It would make more sense for the input to be checked for validity and to re-prompt the user if the input isn't valid. This should be done for all input checks.