-
Notifications
You must be signed in to change notification settings - Fork 684
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
On the last level, pressing enter to go to next screen doesn't work #193
Comments
I've had a quick look at this, the problem appears to be because there are two valid answers
and
Everything works as expected if you use the 4 line answer, however when using the 3 line answer the game.js does a check when the user presses enter to check the number of lines is the same as the expected answer and as it is less the button click is not triggered. This could be fixed by adding a silent check each time the user presses enter incase it has been solved in less lines than expected however calling the |
Ahhh that explains it, thanks for the investigation @hedgecox. This behavior is intended to avoid negative feedback when someone is simply entering a new line, which could get annoying and discouraging. One approach is to have users hit enter a few times, and when the max lines is reached (even with blank lines), the answer is checked. This could be coupled with an alternate key combo to force checking, like shift-enter. The second approach, which I'm leaning towards, is what @hedgecox suggests. The silent check would avoid the negative feedback shake, and only mark it if it's correct. It could help in another levels too if someone keeps multiple properties on one line, which isn't advised but could happen. |
Turns out you can already hit control-enter or command-enter to force submit. |
I hit this snag too! After all, we've learned |
Only works clicking on the next button.
Tested on Firefox and Chrome.
The text was updated successfully, but these errors were encountered: